We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 83f08b8 commit db35813Copy full SHA for db35813
src/safe.rs
@@ -145,7 +145,7 @@ impl Library {
145
/// **awesome_variable = 42.0;
146
/// };
147
/// ```
148
- pub unsafe fn get<T>(&self, symbol: &[u8]) -> Result<Symbol<T>, Error> {
+ pub unsafe fn get<T>(&self, symbol: &[u8]) -> Result<Symbol<'_, T>, Error> {
149
self.0.get(symbol).map(|from| Symbol::from_raw(from, self))
150
}
151
@@ -317,4 +317,3 @@ impl<T> fmt::Debug for Symbol<'_, T> {
317
318
unsafe impl<T: Send> Send for Symbol<'_, T> {}
319
unsafe impl<T: Sync> Sync for Symbol<'_, T> {}
320
-
0 commit comments