Skip to content

Commit a2dd4a3

Browse files
committed
Minor fixes
1 parent 6ad779c commit a2dd4a3

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

crates/core_simd/src/lib.rs

-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
#![no_std]
22
#![feature(
3-
core_intrinsics,
43
const_intrinsic_copy,
54
const_refs_to_cell,
65
const_maybe_uninit_as_mut_ptr,

crates/core_simd/src/masks.rs

+3-3
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ mod sealed {
3333

3434
fn eq(self, other: Self) -> bool;
3535

36-
fn as_usize(self) -> usize;
36+
fn to_usize(self) -> usize;
3737

3838
type Unsigned: SimdElement;
3939

@@ -65,7 +65,7 @@ macro_rules! impl_element {
6565
fn eq(self, other: Self) -> bool { self == other }
6666

6767
#[inline]
68-
fn as_usize(self) -> usize {
68+
fn to_usize(self) -> usize {
6969
self as usize
7070
}
7171

@@ -394,7 +394,7 @@ where
394394
if min_index.eq(T::TRUE) {
395395
None
396396
} else {
397-
Some(min_index.as_usize())
397+
Some(min_index.to_usize())
398398
}
399399
}
400400
}

0 commit comments

Comments
 (0)