diff options
author | chansuke <chansuke@georepublic.de> | 2018-09-18 23:24:15 +0900 |
---|---|---|
committer | Josh Matthews <josh@joshmatthews.net> | 2018-09-19 17:40:47 -0400 |
commit | c37a345dc9f4dda6ea29c42f96f6c7201c42cbac (patch) | |
tree | 1f05b49bac02318455a59d5b143c186fd872bdb9 /components/script/dom/crypto.rs | |
parent | 2ca7a134736bb4759ff209c1bc0b6dc3cc1984c9 (diff) | |
download | servo-c37a345dc9f4dda6ea29c42f96f6c7201c42cbac.tar.gz servo-c37a345dc9f4dda6ea29c42f96f6c7201c42cbac.zip |
Format script component
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) { |