diff options
author | Anthony Ramine <n.oxyde@gmail.com> | 2016-02-15 12:59:18 +0100 |
---|---|---|
committer | Anthony Ramine <n.oxyde@gmail.com> | 2016-02-15 12:59:18 +0100 |
commit | e08f817058b22cf73ffbbf6e62b7319669c0519d (patch) | |
tree | 80d8aa50a72f11ba6f39d062ba7fba1f13e519c5 /components/script/dom/bindings/interface.rs | |
parent | c9b2ef5c7f5b23d815e8c3c78f972f6f880d6dbd (diff) | |
download | servo-e08f817058b22cf73ffbbf6e62b7319669c0519d.tar.gz servo-e08f817058b22cf73ffbbf6e62b7319669c0519d.zip |
Clean up imports in script::dom::bindings::interface
Diffstat (limited to 'components/script/dom/bindings/interface.rs')
-rw-r--r-- | components/script/dom/bindings/interface.rs | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/components/script/dom/bindings/interface.rs b/components/script/dom/bindings/interface.rs index 58646ad0307..86a1f2b38f3 100644 --- a/components/script/dom/bindings/interface.rs +++ b/components/script/dom/bindings/interface.rs @@ -13,13 +13,11 @@ use js::jsapi::{JS_DefineProperty2, JS_DefineProperty4, JS_GetFunctionObject}; use js::jsapi::{JS_GetPrototype, JS_InternString, JS_LinkConstructorAndPrototype}; use js::jsapi::{JS_NewFunction, JS_NewObject, JS_NewObjectWithUniqueType, JS_DefineProperty}; use js::jsapi::{MutableHandleObject, MutableHandleValue, ObjectOps, RootedObject}; -use js::jsapi::{RootedString, Value}; -use js::jsapi::{RootedValue}; +use js::jsapi::{RootedString, RootedValue, Value}; use js::jsval::{BooleanValue, DoubleValue, Int32Value, JSVal, NullValue, UInt32Value}; use js::rust::{define_methods, define_properties}; use js::{JSPROP_ENUMERATE, JSFUN_CONSTRUCTOR, JSPROP_PERMANENT, JSPROP_READONLY}; use libc; -use libc::c_uint; use std::ptr; /// Representation of an IDL constant value. @@ -61,7 +59,7 @@ impl ConstantSpec { /// A JSNative that cannot be null. pub type NonNullJSNative = - unsafe extern "C" fn (arg1: *mut JSContext, arg2: c_uint, arg3: *mut JSVal) -> bool; + unsafe extern "C" fn (arg1: *mut JSContext, arg2: libc::c_uint, arg3: *mut JSVal) -> bool; /// Defines constants on `obj`. /// Fails on JSAPI failure. |