From 8b189da7decd92198f88d97ad8941a3cb89fca86 Mon Sep 17 00:00:00 2001 From: "Stefan J. Wernli" Date: Tue, 31 Oct 2023 11:36:17 -0700 Subject: [PATCH] Fix clippy failure --- compiler/qsc_frontend/src/typeck/tests.rs | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/compiler/qsc_frontend/src/typeck/tests.rs b/compiler/qsc_frontend/src/typeck/tests.rs index c2f83c1893..01f17134a1 100644 --- a/compiler/qsc_frontend/src/typeck/tests.rs +++ b/compiler/qsc_frontend/src/typeck/tests.rs @@ -1111,7 +1111,7 @@ fn ternop_update_udt_unknown_field_name() { } "}, "", - &expect![[r##" + &expect![[r#" #19 79-81 "()" : Unit #21 87-155 "{\n let p = Pair(1, 2);\n let q = p w/ Third <- 3;\n }" : Unit #23 101-102 "p" : UDT @@ -1126,7 +1126,7 @@ fn ternop_update_udt_unknown_field_name() { #39 138-143 "Third" : ? #42 147-148 "3" : Int Error(Type(Error(MissingClassHasField(Udt(Item(ItemId { package: None, item: LocalItemId(1) })), "Third", Span { lo: 133, hi: 148 })))) - "##]], + "#]], ); } @@ -1146,7 +1146,7 @@ fn ternop_update_udt_unknown_field_name_known_global() { } "}, "", - &expect![[r##" + &expect![[r#" #19 81-83 "()" : Unit #21 89-91 "{}" : Unit #25 109-111 "()" : Unit @@ -1163,7 +1163,7 @@ fn ternop_update_udt_unknown_field_name_known_global() { #45 168-173 "Third" : ? #48 177-178 "3" : Int Error(Type(Error(MissingClassHasField(Udt(Item(ItemId { package: None, item: LocalItemId(1) })), "Third", Span { lo: 163, hi: 178 })))) - "##]], + "#]], ); } @@ -2011,7 +2011,7 @@ fn newtype_does_not_match_base_ty() { } "}, "", - &expect![[r##" + &expect![[r#" #12 56-58 "()" : Unit #16 65-78 "{ NewInt(5) }" : UDT #18 67-76 "NewInt(5)" : UDT @@ -2019,7 +2019,7 @@ fn newtype_does_not_match_base_ty() { #22 73-76 "(5)" : Int #23 74-75 "5" : Int Error(Type(Error(TyMismatch(Prim(Int), Udt(Item(ItemId { package: None, item: LocalItemId(1) })), Span { lo: 67, hi: 76 })))) - "##]], + "#]], ); } @@ -2034,7 +2034,7 @@ fn newtype_does_not_match_other_newtype() { } "}, "", - &expect![[r##" + &expect![[r#" #18 84-86 "()" : Unit #22 97-111 "{ NewInt1(5) }" : UDT #24 99-109 "NewInt1(5)" : UDT @@ -2042,7 +2042,7 @@ fn newtype_does_not_match_other_newtype() { #28 106-109 "(5)" : Int #29 107-108 "5" : Int Error(Type(Error(TyMismatch(Udt(Item(ItemId { package: None, item: LocalItemId(2) })), Udt(Item(ItemId { package: None, item: LocalItemId(1) })), Span { lo: 99, hi: 109 })))) - "##]], + "#]], ); } @@ -2104,7 +2104,7 @@ fn newtype_field_invalid() { } "}, "", - &expect![[r##" + &expect![[r#" #13 59-68 "(x : Foo)" : UDT #14 60-67 "x : Foo" : UDT #20 74-106 "{\n let y = x::Nope;\n }" : Unit @@ -2113,7 +2113,7 @@ fn newtype_field_invalid() { #25 92-93 "x" : UDT Error(Type(Error(MissingClassHasField(Udt(Item(ItemId { package: None, item: LocalItemId(1) })), "Nope", Span { lo: 92, hi: 99 })))) Error(Type(Error(AmbiguousTy(Span { lo: 92, hi: 99 })))) - "##]], + "#]], ); }