From 197039b9fe2b14fbaa81cae18fff855625f07def Mon Sep 17 00:00:00 2001 From: Edwin Cheng Date: Fri, 10 Apr 2020 02:06:14 +0800 Subject: Remove allow(unused) --- crates/ra_proc_macro_srv/src/dylib.rs | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'crates/ra_proc_macro_srv') diff --git a/crates/ra_proc_macro_srv/src/dylib.rs b/crates/ra_proc_macro_srv/src/dylib.rs index 525c7ac7b..738b10d56 100644 --- a/crates/ra_proc_macro_srv/src/dylib.rs +++ b/crates/ra_proc_macro_srv/src/dylib.rs @@ -91,8 +91,7 @@ fn load_library(file: &Path) -> Result { struct ProcMacroLibraryLibloading { // Hold the dylib to prevent it for unloadeding - #[allow(dead_code)] - lib: Library, + _lib: Library, exported_macros: Vec, } @@ -110,7 +109,7 @@ impl ProcMacroLibraryLibloading { macros.to_vec() }; - Ok(ProcMacroLibraryLibloading { lib, exported_macros }) + Ok(ProcMacroLibraryLibloading { _lib: lib, exported_macros }) } } -- cgit v1.2.3