@@ -89,7 +89,12 @@ fn typedarray() {
89
89
assert_eq ! ( view. unwrap( ) . is_shared( ) , false ) ;
90
90
91
91
rooted ! ( in( context) let mut rval = ptr:: null_mut:: <JSObject >( ) ) ;
92
- assert ! ( Float32Array :: create( context, CreateWith :: Slice ( & [ 0.25 , 0.5 , 1.0 , 2.0 , 4.0 ] ) , rval. handle_mut( ) ) . is_ok( ) ) ;
92
+ assert ! ( Float32Array :: create(
93
+ context,
94
+ CreateWith :: Slice ( & [ 0.25 , 0.5 , 1.0 , 2.0 , 4.0 ] ) ,
95
+ rval. handle_mut( )
96
+ )
97
+ . is_ok( ) ) ;
93
98
94
99
typedarray ! ( in( context) let array: Float32Array = rval. get( ) ) ;
95
100
assert_eq ! ( array. unwrap( ) . as_slice( ) , & [ 0.25 , 0.5 , 1.0 , 2.0 , 4.0 ] ) ;
@@ -99,7 +104,12 @@ fn typedarray() {
99
104
assert_eq ! ( array. unwrap( ) . as_slice( ) , & [ 0.5 , 1.0 , 2.0 , 2.0 , 4.0 ] ) ;
100
105
101
106
rooted ! ( in( context) let mut rval = ptr:: null_mut:: <JSObject >( ) ) ;
102
- assert ! ( BigInt64Array :: create( context, CreateWith :: Slice ( & [ -6 , -1 , 0 , 2 , 5 ] ) , rval. handle_mut( ) ) . is_ok( ) ) ;
107
+ assert ! ( BigInt64Array :: create(
108
+ context,
109
+ CreateWith :: Slice ( & [ -6 , -1 , 0 , 2 , 5 ] ) ,
110
+ rval. handle_mut( )
111
+ )
112
+ . is_ok( ) ) ;
103
113
104
114
typedarray ! ( in( context) let array: BigInt64Array = rval. get( ) ) ;
105
115
assert_eq ! ( array. unwrap( ) . as_slice( ) , & [ -6 , -1 , 0 , 2 , 5 ] ) ;
0 commit comments