diff options
Diffstat (limited to 'crates/ra_ide')
-rw-r--r-- | crates/ra_ide/src/syntax_highlighting.rs | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/crates/ra_ide/src/syntax_highlighting.rs b/crates/ra_ide/src/syntax_highlighting.rs index 2c568a747..9a3e4c82f 100644 --- a/crates/ra_ide/src/syntax_highlighting.rs +++ b/crates/ra_ide/src/syntax_highlighting.rs | |||
@@ -332,8 +332,7 @@ fn bar() { | |||
332 | "# | 332 | "# |
333 | .trim(), | 333 | .trim(), |
334 | ); | 334 | ); |
335 | let dst_file = | 335 | let dst_file = project_dir().join("crates/ra_ide/src/snapshots/rainbow_highlighting.html"); |
336 | project_dir().join("crates/ra_ide/src/snapshots/rainbow_highlighting.html"); | ||
337 | let actual_html = &analysis.highlight_as_html(file_id, true).unwrap(); | 336 | let actual_html = &analysis.highlight_as_html(file_id, true).unwrap(); |
338 | let expected_html = &read_text(&dst_file); | 337 | let expected_html = &read_text(&dst_file); |
339 | std::fs::write(dst_file, &actual_html).unwrap(); | 338 | std::fs::write(dst_file, &actual_html).unwrap(); |