Skip to content

Commit c950cc0

Browse files
committed
Rustfmt updates for tests/array.rs
1 parent 7b87d5a commit c950cc0

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

tests/array.rs

+5-4
Original file line numberDiff line numberDiff line change
@@ -1098,7 +1098,7 @@ fn owned_array_with_stride() {
10981098

10991099
#[test]
11001100
fn owned_array_discontiguous() {
1101-
use ::std::iter::repeat;
1101+
use std::iter::repeat;
11021102
let v: Vec<_> = (0..12).flat_map(|x| repeat(x).take(2)).collect();
11031103
let dim = (3, 2, 2);
11041104
let strides = (8, 4, 2);
@@ -1111,9 +1111,9 @@ fn owned_array_discontiguous() {
11111111

11121112
#[test]
11131113
fn owned_array_discontiguous_drop() {
1114-
use ::std::cell::RefCell;
1115-
use ::std::collections::BTreeSet;
1116-
use ::std::rc::Rc;
1114+
use std::cell::RefCell;
1115+
use std::collections::BTreeSet;
1116+
use std::rc::Rc;
11171117

11181118
struct InsertOnDrop<T: Ord>(Rc<RefCell<BTreeSet<T>>>, Option<T>);
11191119
impl<T: Ord> Drop for InsertOnDrop<T> {
@@ -1963,6 +1963,7 @@ fn test_accumulate_axis_inplace_noop() {
19631963
assert_eq!(a, Array2::zeros((3, 1)));
19641964
}
19651965

1966+
#[rustfmt::skip] // Allow block array formatting
19661967
#[test]
19671968
fn test_accumulate_axis_inplace_nonstandard_layout() {
19681969
let a = arr2(&[[1, 2, 3],

0 commit comments

Comments
 (0)