Skip to content

Commit 007e0f1

Browse files
committed
Apply style_edition 2024
1 parent 2b5f6f0 commit 007e0f1

File tree

12 files changed

+14
-13
lines changed

12 files changed

+14
-13
lines changed

crates/core_simd/src/ops.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
use crate::simd::{cmp::SimdPartialEq, LaneCount, Simd, SimdElement, SupportedLaneCount};
1+
use crate::simd::{LaneCount, Simd, SimdElement, SupportedLaneCount, cmp::SimdPartialEq};
22
use core::ops::{Add, Mul};
33
use core::ops::{BitAnd, BitOr, BitXor};
44
use core::ops::{Div, Rem, Sub};

crates/core_simd/src/simd/cmp/eq.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
use crate::simd::{
2-
ptr::{SimdConstPtr, SimdMutPtr},
32
LaneCount, Mask, Simd, SimdElement, SupportedLaneCount,
3+
ptr::{SimdConstPtr, SimdMutPtr},
44
};
55

66
/// Parallel `PartialEq`.

crates/core_simd/src/simd/cmp/ord.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
use crate::simd::{
2+
LaneCount, Mask, Simd, SupportedLaneCount,
23
cmp::SimdPartialEq,
34
ptr::{SimdConstPtr, SimdMutPtr},
4-
LaneCount, Mask, Simd, SupportedLaneCount,
55
};
66

77
/// Parallel `PartialOrd`.

crates/core_simd/src/simd/num/float.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
use super::sealed::Sealed;
22
use crate::simd::{
3-
cmp::{SimdPartialEq, SimdPartialOrd},
43
LaneCount, Mask, Simd, SimdCast, SimdElement, SupportedLaneCount,
4+
cmp::{SimdPartialEq, SimdPartialOrd},
55
};
66

77
/// Operations on SIMD vectors of floats.

crates/core_simd/src/simd/num/int.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
use super::sealed::Sealed;
22
use crate::simd::{
3-
cmp::SimdOrd, cmp::SimdPartialOrd, num::SimdUint, LaneCount, Mask, Simd, SimdCast, SimdElement,
4-
SupportedLaneCount,
3+
LaneCount, Mask, Simd, SimdCast, SimdElement, SupportedLaneCount, cmp::SimdOrd,
4+
cmp::SimdPartialOrd, num::SimdUint,
55
};
66

77
/// Operations on SIMD vectors of signed integers.

crates/core_simd/src/simd/num/uint.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
use super::sealed::Sealed;
2-
use crate::simd::{cmp::SimdOrd, LaneCount, Simd, SimdCast, SimdElement, SupportedLaneCount};
2+
use crate::simd::{LaneCount, Simd, SimdCast, SimdElement, SupportedLaneCount, cmp::SimdOrd};
33

44
/// Operations on SIMD vectors of unsigned integers.
55
pub trait SimdUint: Copy + Sealed {

crates/core_simd/src/simd/prelude.rs

+2-1
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,11 @@
77
88
#[doc(no_inline)]
99
pub use super::{
10+
Mask, Simd,
1011
cmp::{SimdOrd, SimdPartialEq, SimdPartialOrd},
1112
num::{SimdFloat, SimdInt, SimdUint},
1213
ptr::{SimdConstPtr, SimdMutPtr},
13-
simd_swizzle, Mask, Simd,
14+
simd_swizzle,
1415
};
1516

1617
#[rustfmt::skip]

crates/core_simd/src/simd/ptr/const_ptr.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
use super::sealed::Sealed;
2-
use crate::simd::{cmp::SimdPartialEq, num::SimdUint, LaneCount, Mask, Simd, SupportedLaneCount};
2+
use crate::simd::{LaneCount, Mask, Simd, SupportedLaneCount, cmp::SimdPartialEq, num::SimdUint};
33

44
/// Operations on SIMD vectors of constant pointers.
55
pub trait SimdConstPtr: Copy + Sealed {

crates/core_simd/src/simd/ptr/mut_ptr.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
use super::sealed::Sealed;
2-
use crate::simd::{cmp::SimdPartialEq, num::SimdUint, LaneCount, Mask, Simd, SupportedLaneCount};
2+
use crate::simd::{LaneCount, Mask, Simd, SupportedLaneCount, cmp::SimdPartialEq, num::SimdUint};
33

44
/// Operations on SIMD vectors of mutable pointers.
55
pub trait SimdMutPtr: Copy + Sealed {

crates/core_simd/src/to_bytes.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
use crate::simd::{
2-
num::{SimdFloat, SimdInt, SimdUint},
32
LaneCount, Simd, SimdElement, SupportedLaneCount,
3+
num::{SimdFloat, SimdInt, SimdUint},
44
};
55

66
mod sealed {

crates/core_simd/src/vector.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
use crate::simd::{
2+
LaneCount, Mask, MaskElement, SupportedLaneCount, Swizzle,
23
cmp::SimdPartialOrd,
34
num::SimdUint,
45
ptr::{SimdConstPtr, SimdMutPtr},
5-
LaneCount, Mask, MaskElement, SupportedLaneCount, Swizzle,
66
};
77

88
/// A SIMD vector with the shape of `[T; N]` but the operations of `T`.

crates/core_simd/tests/pointers.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
#![feature(portable_simd)]
22

33
use core_simd::simd::{
4-
ptr::{SimdConstPtr, SimdMutPtr},
54
Simd,
5+
ptr::{SimdConstPtr, SimdMutPtr},
66
};
77

88
macro_rules! common_tests {

0 commit comments

Comments
 (0)