Skip to content

Commit 5d45066

Browse files
committed
wip
1 parent 934d666 commit 5d45066

File tree

4 files changed

+4
-6
lines changed

4 files changed

+4
-6
lines changed

portable/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ edition = "2021"
88
[features]
99
default = ["std"]
1010

11-
std = [] # fixme: needed?
11+
std = []
1212

1313
# expose SIMD implementations in basic::imp::* and compat::imp::*
1414
public_imp = []

portable/src/basic.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,7 @@ impl core::fmt::Display for Utf8Error {
2222
}
2323
}
2424

25-
#[cfg(feature = "std")]
26-
impl std::error::Error for Utf8Error {}
25+
impl core::error::Error for Utf8Error {}
2726

2827
/// Analogue to [`std::str::from_utf8()`].
2928
///

portable/src/compat.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,8 +64,7 @@ impl Display for Utf8Error {
6464
}
6565
}
6666

67-
#[cfg(feature = "std")]
68-
impl std::error::Error for Utf8Error {}
67+
impl core::error::Error for Utf8Error {}
6968

7069
/// Analogue to [`std::str::from_utf8()`].
7170
///

portable/src/implementation/simd.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
use std::simd::{
1+
use core::simd::{
22
cmp::SimdPartialOrd,
33
num::{SimdInt, SimdUint},
44
simd_swizzle, u8x16, LaneCount, Simd, SupportedLaneCount,

0 commit comments

Comments
 (0)