diff options
author | Manish Goregaokar <manishsmail@gmail.com> | 2015-09-04 09:11:04 +0530 |
---|---|---|
committer | Manish Goregaokar <manishsmail@gmail.com> | 2015-09-04 09:13:48 +0530 |
commit | e94df1ed5c3ccf76cd616e1146e2944f852477ac (patch) | |
tree | d112409360efa1979fca5c2902aecdfa18e684c0 /components/script/dom/bindings/proxyhandler.rs | |
parent | 2e02ea38fca44aaa5fe23e524bf27f667b300ada (diff) | |
download | servo-e94df1ed5c3ccf76cd616e1146e2944f852477ac.tar.gz servo-e94df1ed5c3ccf76cd616e1146e2944f852477ac.zip |
Remove needless returns
Diffstat (limited to 'components/script/dom/bindings/proxyhandler.rs')
-rw-r--r-- | components/script/dom/bindings/proxyhandler.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/components/script/dom/bindings/proxyhandler.rs b/components/script/dom/bindings/proxyhandler.rs index 2dde7370442..66240df0d2c 100644 --- a/components/script/dom/bindings/proxyhandler.rs +++ b/components/script/dom/bindings/proxyhandler.rs @@ -87,14 +87,14 @@ pub unsafe extern fn prevent_extensions(_cx: *mut JSContext, _proxy: HandleObject, result: *mut ObjectOpResult) -> u8 { (*result).code_ = JSErrNum::JSMSG_CANT_PREVENT_EXTENSIONS as u32; - return JSTrue; + JSTrue } /// Reports whether the object is Extensible pub unsafe extern fn is_extensible(_cx: *mut JSContext, _proxy: HandleObject, succeeded: *mut u8) -> u8 { *succeeded = JSTrue; - return JSTrue; + JSTrue } /// Get the expando object, or null if there is none. @@ -123,7 +123,7 @@ pub fn ensure_expando_object(cx: *mut JSContext, obj: HandleObject) SetProxyExtra(obj.get(), JSPROXYSLOT_EXPANDO, ObjectValue(&*expando)); } - return expando; + expando } } |