summaryrefslogtreecommitdiff
path: root/ext/ffi/lib.rs
diff options
context:
space:
mode:
Diffstat (limited to 'ext/ffi/lib.rs')
-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 2100a4d53..cfff59953 100644
--- a/ext/ffi/lib.rs
+++ b/ext/ffi/lib.rs
@@ -329,8 +329,7 @@ fn op_ffi_call(
) -> Result<Value, AnyError> {
let resource = state
.resource_table
- .get::<DynamicLibraryResource>(args.rid)
- .ok_or_else(bad_resource_id)?;
+ .get::<DynamicLibraryResource>(args.rid)?;
let symbol = resource
.symbols