chore: clippy fix

This commit is contained in:
rvcas 2023-09-13 17:19:31 -04:00
parent 06347c3efa
commit 9a4f181a0f
No known key found for this signature in database
GPG Key ID: C09B64E263F7D68C
2 changed files with 4 additions and 4 deletions

View File

@ -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)

View File

@ -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]