diff options
Diffstat (limited to 'components/script/dom/crypto.rs')
-rw-r--r-- | components/script/dom/crypto.rs | 15 |
1 files changed, 10 insertions, 5 deletions
diff --git a/components/script/dom/crypto.rs b/components/script/dom/crypto.rs index 2ee87a1719b..cc17c8a00f3 100644 --- a/components/script/dom/crypto.rs +++ b/components/script/dom/crypto.rs @@ -36,17 +36,22 @@ impl Crypto { } pub fn new(global: &GlobalScope) -> DomRoot<Crypto> { - reflect_dom_object(Box::new(Crypto::new_inherited()), global, CryptoBinding::Wrap) + reflect_dom_object( + Box::new(Crypto::new_inherited()), + global, + CryptoBinding::Wrap, + ) } } impl CryptoMethods for Crypto { #[allow(unsafe_code)] // https://dvcs.w3.org/hg/webcrypto-api/raw-file/tip/spec/Overview.html#Crypto-method-getRandomValues - unsafe fn GetRandomValues(&self, - _cx: *mut JSContext, - mut input: CustomAutoRooterGuard<ArrayBufferView>) - -> Fallible<NonNull<JSObject>> { + unsafe fn GetRandomValues( + &self, + _cx: *mut JSContext, + mut input: CustomAutoRooterGuard<ArrayBufferView>, + ) -> Fallible<NonNull<JSObject>> { let array_type = input.get_array_type(); if !is_integer_buffer(array_type) { |