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:
bors[bot] 2020-01-03 18:25:14 +00:00 committed by GitHub
commit 1a18fe2ec0
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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()
}