mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-28 11:20:54 +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…
x
Reference in New Issue
Block a user