Skip to content

Commit 197039b

Browse files
committed
Remove allow(unused)
1 parent 460ddde commit 197039b

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

crates/ra_proc_macro_srv/src/dylib.rs

+2-3
Original file line numberDiff line numberDiff line change
@@ -91,8 +91,7 @@ fn load_library(file: &Path) -> Result<Library, libloading::Error> {
9191

9292
struct ProcMacroLibraryLibloading {
9393
// Hold the dylib to prevent it for unloadeding
94-
#[allow(dead_code)]
95-
lib: Library,
94+
_lib: Library,
9695
exported_macros: Vec<bridge::client::ProcMacro>,
9796
}
9897

@@ -110,7 +109,7 @@ impl ProcMacroLibraryLibloading {
110109
macros.to_vec()
111110
};
112111

113-
Ok(ProcMacroLibraryLibloading { lib, exported_macros })
112+
Ok(ProcMacroLibraryLibloading { _lib: lib, exported_macros })
114113
}
115114
}
116115

0 commit comments

Comments
 (0)