Skip to content

Commit

Permalink
Fix formatting issues
Browse files Browse the repository at this point in the history
  • Loading branch information
AZWN committed Apr 3, 2019
1 parent c7c174f commit 60ba3d2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion components/script/dom/audiocontext.rs
Expand Up @@ -110,7 +110,7 @@ impl AudioContextMethods for AudioContext {
#[allow(unsafe_code)]
fn Suspend(&self) -> Rc<Promise> {
// Step 1.
let promise = unsafe {Promise::new_in_current_compartment(&self.global()) };
let promise = unsafe { Promise::new_in_current_compartment(&self.global()) };

// Step 2.
if self.context.control_thread_state() == ProcessingState::Closed {
Expand Down
2 changes: 1 addition & 1 deletion components/script/dom/vrdisplay.rs
Expand Up @@ -343,7 +343,7 @@ impl VRDisplayMethods for VRDisplay {
// https://w3c.github.io/webvr/#dom-vrdisplay-requestpresent
#[allow(unsafe_code)]
fn RequestPresent(&self, layers: Vec<VRLayer>) -> Rc<Promise> {
let promise = unsafe {Promise::new_in_current_compartment(&self.global()) };
let promise = unsafe { Promise::new_in_current_compartment(&self.global()) };
// TODO: WebVR spec: this method must be called in response to a user gesture

// WebVR spec: If canPresent is false the promise MUST be rejected
Expand Down

0 comments on commit 60ba3d2

Please sign in to comment.