diff options
author | Edwin Cheng <[email protected]> | 2020-01-03 17:18:46 +0000 |
---|---|---|
committer | Edwin Cheng <[email protected]> | 2020-01-03 17:18:46 +0000 |
commit | ff5883637cfa120685691627d14126ec041e7581 (patch) | |
tree | d691f085021e24773580cf07701a939f169a6f32 /crates/ra_cargo_watch | |
parent | dfe3824eb060093938574485722c82bec07e2fae (diff) |
Fix unused import for windows in cargo_watch test
Diffstat (limited to 'crates/ra_cargo_watch')
-rw-r--r-- | crates/ra_cargo_watch/src/conv/test.rs | 2 |
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))] | ||
3 | use crate::*; | 4 | use crate::*; |
4 | 5 | ||
6 | #[cfg(not(windows))] | ||
5 | fn parse_diagnostic(val: &str) -> cargo_metadata::diagnostic::Diagnostic { | 7 | fn 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 | } |