diff options
Diffstat (limited to 'ext/ffi/lib.rs')
-rw-r--r-- | ext/ffi/lib.rs | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/ext/ffi/lib.rs b/ext/ffi/lib.rs index ca02aca5b..17ebf772b 100644 --- a/ext/ffi/lib.rs +++ b/ext/ffi/lib.rs @@ -573,9 +573,8 @@ where // By default, Err returned by this function does not tell // which symbol wasn't exported. So we'll modify the error // message to include the name of symbol. - // - // SAFETY: The obtained T symbol is the size of a pointer. let fn_ptr = + // SAFETY: The obtained T symbol is the size of a pointer. match unsafe { resource.lib.symbol::<*const c_void>(symbol) } { Ok(value) => Ok(value), Err(err) => Err(generic_error(format!( |