diff options
author | Aron Zwaan <aronzwaan@gmail.com> | 2019-04-24 22:33:16 +0200 |
---|---|---|
committer | Aron Zwaan <aronzwaan@gmail.com> | 2019-04-25 11:37:35 +0200 |
commit | e2e6e2ac9428b9448edb06f7f11b201ce68e7191 (patch) | |
tree | 1ad0b3a8647d2946bf9a0b5ff427f1d8c1e6cf29 /components/script/dom/audiocontext.rs | |
parent | 1b6949d4cf951600efa6db6747b65e2db42a96cd (diff) | |
download | servo-e2e6e2ac9428b9448edb06f7f11b201ce68e7191.tar.gz servo-e2e6e2ac9428b9448edb06f7f11b201ce68e7191.zip |
Pass InCompartment by value
Diffstat (limited to 'components/script/dom/audiocontext.rs')
-rw-r--r-- | components/script/dom/audiocontext.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/components/script/dom/audiocontext.rs b/components/script/dom/audiocontext.rs index 7e3bed85e06..3147f9bfb0a 100644 --- a/components/script/dom/audiocontext.rs +++ b/components/script/dom/audiocontext.rs @@ -113,7 +113,7 @@ impl AudioContextMethods for AudioContext { let in_compartment_proof = AlreadyInCompartment::assert(&self.global()); let promise = Promise::new_in_current_compartment( &self.global(), - &InCompartment::Already(&in_compartment_proof), + InCompartment::Already(&in_compartment_proof), ); // Step 2. @@ -178,7 +178,7 @@ impl AudioContextMethods for AudioContext { let in_compartment_proof = AlreadyInCompartment::assert(&self.global()); let promise = Promise::new_in_current_compartment( &self.global(), - &InCompartment::Already(&in_compartment_proof), + InCompartment::Already(&in_compartment_proof), ); // Step 2. |