Fix formatting issues

This commit is contained in:
Aron Zwaan 2019-04-03 18:55:58 +02:00
parent c7c174f837
commit 60ba3d2573
2 changed files with 2 additions and 2 deletions

View file

@ -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 {

View file

@ -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