mirror of
https://github.com/servo/servo.git
synced 2025-07-22 06:43:40 +01:00
Remove unnecessary Result::ok calls
This commit is contained in:
parent
91077ee418
commit
9cadf0981a
2 changed files with 4 additions and 4 deletions
|
@ -246,7 +246,7 @@ unsafe extern fn native_handler_callback(cx: *mut JSContext, argc: u32, vp: *mut
|
|||
assert!(v.get().is_object());
|
||||
|
||||
let handler = root_from_object::<PromiseNativeHandler>(v.to_object())
|
||||
.ok().expect("unexpected value for native handler in promise native handler callback");
|
||||
.expect("unexpected value for native handler in promise native handler callback");
|
||||
|
||||
rooted!(in(cx) let v = *GetFunctionNativeReserved(args.callee(), SLOT_NATIVEHANDLER_TASK));
|
||||
match v.to_int32() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue