From 9a4f181a0fc0dd5762371edde7a56660975e7252 Mon Sep 17 00:00:00 2001 From: rvcas Date: Wed, 13 Sep 2023 17:19:31 -0400 Subject: [PATCH] chore: clippy fix --- crates/aiken-lang/src/format.rs | 2 +- crates/aiken-lang/src/tests/check.rs | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/crates/aiken-lang/src/format.rs b/crates/aiken-lang/src/format.rs index 7134c184..09ae5b2d 100644 --- a/crates/aiken-lang/src/format.rs +++ b/crates/aiken-lang/src/format.rs @@ -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) diff --git a/crates/aiken-lang/src/tests/check.rs b/crates/aiken-lang/src/tests/check.rs index 8b13fe33..35825c39 100644 --- a/crates/aiken-lang/src/tests/check.rs +++ b/crates/aiken-lang/src/tests/check.rs @@ -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]