From a65ca20210b4cf82c32f11249208f990af3fb816 Mon Sep 17 00:00:00 2001 From: Mathew Horner Date: Fri, 16 Sep 2022 16:56:19 -0500 Subject: [PATCH] Fix tests by using primitive rather than String. --- .../src/handlers/type_mismatch.rs | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/crates/ide-diagnostics/src/handlers/type_mismatch.rs b/crates/ide-diagnostics/src/handlers/type_mismatch.rs index 937f98f479..62c69f90ba 100644 --- a/crates/ide-diagnostics/src/handlers/type_mismatch.rs +++ b/crates/ide-diagnostics/src/handlers/type_mismatch.rs @@ -315,25 +315,25 @@ fn main() { fn test_add_reference_to_macro_call() { check_fix( r#" -macro_rules! hello_world { +macro_rules! thousand { () => { - "Hello World".to_string() + 1000_u64 }; } -fn test(foo: &String) {} +fn test(foo: &u64) {} fn main() { - test($0hello_world!()); + test($0thousand!()); } "#, r#" -macro_rules! hello_world { +macro_rules! thousand { () => { - "Hello World".to_string() + 1000_u64 }; } -fn test(foo: &String) {} +fn test(foo: &u64) {} fn main() { - test(&hello_world!()); + test(&thousand!()); } "#, );