diff options
Diffstat (limited to 'crates/ra_cargo_watch/src/conv')
-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 | } |