aboutsummaryrefslogtreecommitdiff
path: root/crates/ra_syntax/tests/test.rs
diff options
context:
space:
mode:
Diffstat (limited to 'crates/ra_syntax/tests/test.rs')
-rw-r--r--crates/ra_syntax/tests/test.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/crates/ra_syntax/tests/test.rs b/crates/ra_syntax/tests/test.rs
index 15f70c090..14ad836b5 100644
--- a/crates/ra_syntax/tests/test.rs
+++ b/crates/ra_syntax/tests/test.rs
@@ -124,7 +124,7 @@ where
124 println!("\nfile: {}", path.display()); 124 println!("\nfile: {}", path.display());
125 println!("No .txt file with expected result, creating...\n"); 125 println!("No .txt file with expected result, creating...\n");
126 println!("{}\n{}", input_code, parse_tree); 126 println!("{}\n{}", input_code, parse_tree);
127 fs::write(&path, parse_tree).unwrap(); 127 fs::write(&path, &parse_tree).unwrap();
128 panic!("No expected result") 128 panic!("No expected result")
129 } 129 }
130 let expected = read_text(&path); 130 let expected = read_text(&path);