Skip to content

Commit ff58836

Browse files
committed
Fix unused import for windows in cargo_watch test
1 parent dfe3824 commit ff58836

File tree

1 file changed

+2
-0
lines changed
  • crates/ra_cargo_watch/src/conv

1 file changed

+2
-0
lines changed

crates/ra_cargo_watch/src/conv/test.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
11
//! This module contains the large and verbose snapshot tests for the
22
//! conversions between `cargo check` json and LSP diagnostics.
3+
#[cfg(not(windows))]
34
use crate::*;
45

6+
#[cfg(not(windows))]
57
fn parse_diagnostic(val: &str) -> cargo_metadata::diagnostic::Diagnostic {
68
serde_json::from_str::<cargo_metadata::diagnostic::Diagnostic>(val).unwrap()
79
}

0 commit comments

Comments
 (0)