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>
This commit is contained in:
commit
1a18fe2ec0
@ -1,7 +1,9 @@
|
||||
//! This module contains the large and verbose snapshot tests for the
|
||||
//! conversions between `cargo check` json and LSP diagnostics.
|
||||
#[cfg(not(windows))]
|
||||
use crate::*;
|
||||
|
||||
#[cfg(not(windows))]
|
||||
fn parse_diagnostic(val: &str) -> cargo_metadata::diagnostic::Diagnostic {
|
||||
serde_json::from_str::<cargo_metadata::diagnostic::Diagnostic>(val).unwrap()
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user