diff options
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 | ||