mirror of
https://github.com/rust-lang/rust
synced 2024-10-04 15:50:51 +00:00
Fix unused import for windows in cargo_watch test
This commit is contained in:
parent
dfe3824eb0
commit
ff5883637c
|
@ -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 a new issue