mirror of
https://github.com/rust-lang/rust.git
synced 2024-12-08 22:53:50 +00:00
Cargo fmt
This commit is contained in:
parent
27a540db47
commit
8f395bd953
@ -2101,17 +2101,13 @@ fn maybe_get_args_offset<T: ToExpr>(callee_str: &str, args: &[&T]) -> Option<usi
|
||||
if FORMAT_LIKE_WHITELIST
|
||||
.iter()
|
||||
.find(|s| **s == callee_str)
|
||||
.is_some()
|
||||
&& args.len() >= 1
|
||||
&& is_every_args_simple(args)
|
||||
.is_some() && args.len() >= 1 && is_every_args_simple(args)
|
||||
{
|
||||
Some(1)
|
||||
} else if WRITE_LIKE_WHITELIST
|
||||
.iter()
|
||||
.find(|s| **s == callee_str)
|
||||
.is_some()
|
||||
&& args.len() >= 2
|
||||
&& is_every_args_simple(args)
|
||||
.is_some() && args.len() >= 2 && is_every_args_simple(args)
|
||||
{
|
||||
Some(2)
|
||||
} else {
|
||||
|
Loading…
Reference in New Issue
Block a user