diff options
Diffstat (limited to 'components/script/dom/crypto.rs')
-rw-r--r-- | components/script/dom/crypto.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/components/script/dom/crypto.rs b/components/script/dom/crypto.rs index f15146aaec5..fa758c06efa 100644 --- a/components/script/dom/crypto.rs +++ b/components/script/dom/crypto.rs @@ -21,7 +21,7 @@ use crate::script_runtime::{CanGc, JSContext}; // https://developer.mozilla.org/en-US/docs/Web/API/Crypto #[dom_struct] -pub struct Crypto { +pub(crate) struct Crypto { reflector_: Reflector, #[no_trace] rng: DomRefCell<ServoRng>, @@ -37,7 +37,7 @@ impl Crypto { } } - pub fn new(global: &GlobalScope) -> DomRoot<Crypto> { + pub(crate) fn new(global: &GlobalScope) -> DomRoot<Crypto> { reflect_dom_object(Box::new(Crypto::new_inherited()), global, CanGc::note()) } } |