diff options
Diffstat (limited to 'components/script/dom/crypto.rs')
-rw-r--r-- | components/script/dom/crypto.rs | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/components/script/dom/crypto.rs b/components/script/dom/crypto.rs index 3fdcb93a9ec..8005c9e7f7a 100644 --- a/components/script/dom/crypto.rs +++ b/components/script/dom/crypto.rs @@ -2,6 +2,14 @@ * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at https://mozilla.org/MPL/2.0/. */ +use std::ptr::NonNull; + +use dom_struct::dom_struct; +use js::jsapi::{JSObject, Type}; +use js::rust::CustomAutoRooterGuard; +use js::typedarray::ArrayBufferView; +use servo_rand::{RngCore, ServoRng}; + use crate::dom::bindings::cell::DomRefCell; use crate::dom::bindings::codegen::Bindings::CryptoBinding::CryptoMethods; use crate::dom::bindings::error::{Error, Fallible}; @@ -9,13 +17,6 @@ use crate::dom::bindings::reflector::{reflect_dom_object, Reflector}; use crate::dom::bindings::root::DomRoot; use crate::dom::globalscope::GlobalScope; use crate::script_runtime::JSContext; -use dom_struct::dom_struct; -use js::jsapi::JSObject; -use js::jsapi::Type; -use js::rust::CustomAutoRooterGuard; -use js::typedarray::ArrayBufferView; -use servo_rand::{RngCore, ServoRng}; -use std::ptr::NonNull; // https://developer.mozilla.org/en-US/docs/Web/API/Crypto #[dom_struct] |