Skip to content

Commit a65ca20

Browse files
committed
Fix tests by using primitive rather than String.
1 parent e7abf34 commit a65ca20

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

crates/ide-diagnostics/src/handlers/type_mismatch.rs

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -315,25 +315,25 @@ fn main() {
315315
fn test_add_reference_to_macro_call() {
316316
check_fix(
317317
r#"
318-
macro_rules! hello_world {
318+
macro_rules! thousand {
319319
() => {
320-
"Hello World".to_string()
320+
1000_u64
321321
};
322322
}
323-
fn test(foo: &String) {}
323+
fn test(foo: &u64) {}
324324
fn main() {
325-
test($0hello_world!());
325+
test($0thousand!());
326326
}
327327
"#,
328328
r#"
329-
macro_rules! hello_world {
329+
macro_rules! thousand {
330330
() => {
331-
"Hello World".to_string()
331+
1000_u64
332332
};
333333
}
334-
fn test(foo: &String) {}
334+
fn test(foo: &u64) {}
335335
fn main() {
336-
test(&hello_world!());
336+
test(&thousand!());
337337
}
338338
"#,
339339
);

0 commit comments

Comments
 (0)