Skip to content

Commit 61daffe

Browse files
committed
chore: clippy
1 parent 1a55530 commit 61daffe

File tree

1 file changed

+4
-4
lines changed
  • clarity/src/vm/analysis/type_checker/v2_1/tests

1 file changed

+4
-4
lines changed

clarity/src/vm/analysis/type_checker/v2_1/tests/mod.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3659,7 +3659,7 @@ fn test_principal_admits() {
36593659
/// Only concerns itself with simple errors (no nesting).
36603660
#[test]
36613661
fn test_simple_bad_syntax_bindings() {
3662-
let bad = vec![
3662+
let bad = [
36633663
// bad let-binding -- binding item is not a list
36643664
"(let (oops (bar u1)) (ok true))",
36653665
// bad let-binding -- binding item is not a 2-element list
@@ -3683,7 +3683,7 @@ fn test_simple_bad_syntax_bindings() {
36833683
// bad type signature (no longer a bad syntax binding error)
36843684
"(from-consensus-buff? (tuple (a (string-ascii -12))) 0x00)",
36853685
];
3686-
let expected = vec![
3686+
let expected = [
36873687
CheckErrors::BadSyntaxBinding(SyntaxBindingError::let_binding_not_list(0)),
36883688
CheckErrors::BadSyntaxBinding(SyntaxBindingError::let_binding_invalid_length(0)),
36893689
CheckErrors::BadSyntaxBinding(SyntaxBindingError::let_binding_not_atom(0)),
@@ -3708,7 +3708,7 @@ fn test_simple_bad_syntax_bindings() {
37083708
/// type-check error.
37093709
#[test]
37103710
fn test_nested_bad_type_signature_syntax_bindings() {
3711-
let bad = vec![
3711+
let bad = [
37123712
// bad tuple type signature within a tower of tuples
37133713
"(define-public (foo (bar { a: { b: { c: (string-ascii -19) } } })) (ok true))",
37143714
// bad type signature within a tower of lists
@@ -3717,7 +3717,7 @@ fn test_nested_bad_type_signature_syntax_bindings() {
37173717
"(from-consensus-buff? { a : { b: { c: (string-ascii -19) } } } 0x00)",
37183718
];
37193719

3720-
let expected = vec![
3720+
let expected = [
37213721
CheckErrors::ValueOutOfBounds,
37223722
CheckErrors::InvalidTypeDescription,
37233723
CheckErrors::ValueOutOfBounds,

0 commit comments

Comments
 (0)