chore: clippy fix
This commit is contained in:
parent
06347c3efa
commit
9a4f181a0f
|
@ -171,7 +171,7 @@ impl<'comments> Formatter<'comments> {
|
|||
line(),
|
||||
);
|
||||
|
||||
let declarations = join(declarations.into_iter(), lines(2));
|
||||
let declarations = join(declarations, lines(2));
|
||||
|
||||
let sep = if has_imports && has_declarations {
|
||||
lines(2)
|
||||
|
|
|
@ -331,7 +331,7 @@ fn exhaustiveness_expect() {
|
|||
}
|
||||
"#;
|
||||
|
||||
assert!(matches!(check(parse(source_code)), Ok(_)))
|
||||
assert!(check(parse(source_code)).is_ok())
|
||||
}
|
||||
|
||||
#[test]
|
||||
|
@ -607,7 +607,7 @@ fn exhaustiveness_nested_list_and_tuples() {
|
|||
}
|
||||
"#;
|
||||
|
||||
assert!(matches!(check(parse(source_code)), Ok(_)))
|
||||
assert!(check(parse(source_code)).is_ok())
|
||||
}
|
||||
|
||||
#[test]
|
||||
|
@ -643,7 +643,7 @@ fn expect_sugar_correct_type() {
|
|||
}
|
||||
"#;
|
||||
|
||||
assert!(matches!(check(parse(source_code)), Ok(_)))
|
||||
assert!(check(parse(source_code)).is_ok())
|
||||
}
|
||||
|
||||
#[test]
|
||||
|
|
Loading…
Reference in New Issue