Skip to content

Commit

Permalink
Remove blank line
Browse files Browse the repository at this point in the history
Part of rustwasm#670
  • Loading branch information
kraai committed Aug 17, 2018
1 parent bec3178 commit 6dccb7f
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions crates/js-sys/tests/wasm/DataView.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
use js_sys::*;
use wasm_bindgen::JsCast;
use wasm_bindgen::JsValue;
use wasm_bindgen_test::*;
use wasm_bindgen::JsCast;
use js_sys::*;

#[wasm_bindgen_test]
fn test() {
Expand Down Expand Up @@ -36,7 +36,9 @@ fn test() {
v.set_int8(0, 42);

// TODO: figure out how to do `bytes[2]`
bytes.subarray(2, 3).for_each(&mut |x, _, _| assert_eq!(x, 42));
bytes
.subarray(2, 3)
.for_each(&mut |x, _, _| assert_eq!(x, 42));
}

#[wasm_bindgen_test]
Expand All @@ -50,6 +52,5 @@ fn dataview_inheritance() {

assert!(v.is_instance_of::<DataView>());
assert!(v.is_instance_of::<Object>());

let _: &Object = v.as_ref();
}

0 comments on commit 6dccb7f

Please sign in to comment.