Skip to content

Commit 1a18fe2

Browse files
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 <edwin0cheng@gmail.com>
2 parents dfe3824 + ff58836 commit 1a18fe2

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)