From ff5883637cfa120685691627d14126ec041e7581 Mon Sep 17 00:00:00 2001 From: Edwin Cheng Date: Sat, 4 Jan 2020 01:18:46 +0800 Subject: Fix unused import for windows in cargo_watch test --- crates/ra_cargo_watch/src/conv/test.rs | 2 ++ 1 file changed, 2 insertions(+) (limited to 'crates/ra_cargo_watch') diff --git a/crates/ra_cargo_watch/src/conv/test.rs b/crates/ra_cargo_watch/src/conv/test.rs index f77ef1b4d..6b86525b8 100644 --- a/crates/ra_cargo_watch/src/conv/test.rs +++ b/crates/ra_cargo_watch/src/conv/test.rs @@ -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::(val).unwrap() } -- cgit v1.2.3