Fix unused import for windows in cargo_watch test

This commit is contained in:
Edwin Cheng 2020-01-04 01:18:46 +08:00
parent dfe3824eb0
commit ff5883637c

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