aboutsummaryrefslogtreecommitdiff
path: root/crates
diff options
context:
space:
mode:
authorbors[bot] <26634292+bors[bot]@users.noreply.github.com>2020-01-03 18:25:14 +0000
committerGitHub <[email protected]>2020-01-03 18:25:14 +0000
commit1a18fe2ec075652942514ba7d31049a4148f6e4a (patch)
treed691f085021e24773580cf07701a939f169a6f32 /crates
parentdfe3824eb060093938574485722c82bec07e2fae (diff)
parentff5883637cfa120685691627d14126ec041e7581 (diff)
Merge #2740
2740: Fix unused import for windows in cargo_watch test r=matklad a=edwin0cheng This PR fixed some unused import in ra_cargo_watch test which are not used in Windows. Co-authored-by: Edwin Cheng <[email protected]>
Diffstat (limited to 'crates')
-rw-r--r--crates/ra_cargo_watch/src/conv/test.rs2
1 files changed, 2 insertions, 0 deletions
diff --git a/crates/ra_cargo_watch/src/conv/test.rs b/crates/ra_cargo_watch/src/conv/test.rs
index f77ef1b4d..6b86525b8 100644
--- a/crates/ra_cargo_watch/src/conv/test.rs
+++ b/crates/ra_cargo_watch/src/conv/test.rs
@@ -1,7 +1,9 @@
1//! This module contains the large and verbose snapshot tests for the 1//! This module contains the large and verbose snapshot tests for the
2//! conversions between `cargo check` json and LSP diagnostics. 2//! conversions between `cargo check` json and LSP diagnostics.
3#[cfg(not(windows))]
3use crate::*; 4use crate::*;
4 5
6#[cfg(not(windows))]
5fn parse_diagnostic(val: &str) -> cargo_metadata::diagnostic::Diagnostic { 7fn parse_diagnostic(val: &str) -> cargo_metadata::diagnostic::Diagnostic {
6 serde_json::from_str::<cargo_metadata::diagnostic::Diagnostic>(val).unwrap() 8 serde_json::from_str::<cargo_metadata::diagnostic::Diagnostic>(val).unwrap()
7} 9}