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]