clippy::complexity fixes
This commit is contained in:
parent
0157cc977f
commit
e6f77a1787
18 changed files with 23 additions and 30 deletions
|
@ -230,8 +230,7 @@ fn check_panic_str<'tcx>(
|
|||
Err(_) => (None, None),
|
||||
};
|
||||
|
||||
let mut fmt_parser =
|
||||
Parser::new(fmt.as_ref(), style, snippet.clone(), false, ParseMode::Format);
|
||||
let mut fmt_parser = Parser::new(fmt, style, snippet.clone(), false, ParseMode::Format);
|
||||
let n_arguments = (&mut fmt_parser).filter(|a| matches!(a, Piece::NextArgument(_))).count();
|
||||
|
||||
if n_arguments > 0 && fmt_parser.errors.is_empty() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue