summaryrefslogtreecommitdiff
path: root/ext/ffi
diff options
context:
space:
mode:
authorBartek IwaƄczuk <biwanczuk@gmail.com>2022-07-01 15:28:06 +0200
committerGitHub <noreply@github.com>2022-07-01 15:28:06 +0200
commitb8b82c3ea4ec154581f57b0d00f08f2fd1d871ce (patch)
treed94e3230479fe44dfe347d452423f98a5a1d8a47 /ext/ffi
parent77c25beaa59d64035c20ef59d93ed5a99677bc93 (diff)
chore: use Rust 1.62.0 (#15028)
Diffstat (limited to 'ext/ffi')
-rw-r--r--ext/ffi/lib.rs3
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!(