Skip to content

Commit 2792b45

Browse files
committed
Formatting
1 parent 378f055 commit 2792b45

File tree

2 files changed

+14
-6
lines changed

2 files changed

+14
-6
lines changed

crates/core_arch/src/x86/sse2.rs

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,7 @@ use crate::{
1717
///
1818
/// [Intel's documentation](https://software.intel.com/sites/landingpage/IntrinsicsGuide/#text=_mm_pause)
1919
#[inline]
20-
#[cfg_attr(
21-
all(test, target_feature = "sse2"),
22-
assert_instr(pause)
23-
)]
20+
#[cfg_attr(all(test, target_feature = "sse2"), assert_instr(pause))]
2421
#[stable(feature = "simd_x86", since = "1.27.0")]
2522
pub unsafe fn _mm_pause() {
2623
// note: `pause` is guaranteed to be interpreted as a `nop` by CPUs without

crates/stdsimd-verify/src/lib.rs

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -199,11 +199,22 @@ fn extract_path_ident(path: &syn::Path) -> syn::Ident {
199199
if path.segments.len() != 1 {
200200
panic!("unsupported path that needs name resolution")
201201
}
202-
match path.segments.first().expect("segment not found").value().arguments {
202+
match path
203+
.segments
204+
.first()
205+
.expect("segment not found")
206+
.value()
207+
.arguments
208+
{
203209
syn::PathArguments::None => {}
204210
_ => panic!("unsupported path that has path arguments"),
205211
}
206-
path.segments.first().expect("segment not found").value().ident.clone()
212+
path.segments
213+
.first()
214+
.expect("segment not found")
215+
.value()
216+
.ident
217+
.clone()
207218
}
208219

209220
fn walk(root: &Path, files: &mut Vec<(syn::File, String)>) {

0 commit comments

Comments
 (0)