diff options
author | Edwin Cheng <[email protected]> | 2020-04-09 19:06:14 +0100 |
---|---|---|
committer | Edwin Cheng <[email protected]> | 2020-04-09 19:06:14 +0100 |
commit | 197039b9fe2b14fbaa81cae18fff855625f07def (patch) | |
tree | bb4782811a0a30c6bdf508cec3f1331599b2d260 /crates/ra_proc_macro_srv/src | |
parent | 460ddde1762a429265445f7bfddc6589d56f48e6 (diff) |
Remove allow(unused)
Diffstat (limited to 'crates/ra_proc_macro_srv/src')
-rw-r--r-- | crates/ra_proc_macro_srv/src/dylib.rs | 5 |
1 files changed, 2 insertions, 3 deletions
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<Library, libloading::Error> { | |||
91 | 91 | ||
92 | struct ProcMacroLibraryLibloading { | 92 | struct ProcMacroLibraryLibloading { |
93 | // Hold the dylib to prevent it for unloadeding | 93 | // Hold the dylib to prevent it for unloadeding |
94 | #[allow(dead_code)] | 94 | _lib: Library, |
95 | lib: Library, | ||
96 | exported_macros: Vec<bridge::client::ProcMacro>, | 95 | exported_macros: Vec<bridge::client::ProcMacro>, |
97 | } | 96 | } |
98 | 97 | ||
@@ -110,7 +109,7 @@ impl ProcMacroLibraryLibloading { | |||
110 | macros.to_vec() | 109 | macros.to_vec() |
111 | }; | 110 | }; |
112 | 111 | ||
113 | Ok(ProcMacroLibraryLibloading { lib, exported_macros }) | 112 | Ok(ProcMacroLibraryLibloading { _lib: lib, exported_macros }) |
114 | } | 113 | } |
115 | } | 114 | } |
116 | 115 | ||