diff options
author | Aleksey Kladov <[email protected]> | 2019-11-27 18:44:38 +0000 |
---|---|---|
committer | Aleksey Kladov <[email protected]> | 2019-11-27 18:44:38 +0000 |
commit | 27b362b05910c81fd5b28f6cd5d2c075311032f9 (patch) | |
tree | 4c059427819ef442c785125f48fe83f81f6d667a /crates/ra_ide/src | |
parent | 757e593b253b4df7e6fc8bf15a4d4f34c9d484c5 (diff) |
Reformat
Diffstat (limited to 'crates/ra_ide/src')
-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(); |