Skip to content

Commit 2730595

Browse files
committed
Error feature flag to tide MSRV concerns for now
1 parent c993dd1 commit 2730595

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ exclude = ["target/*", "Cargo.lock", "scripts/tmp", "*.txt", "tests/*"]
3737
version = "1"
3838
features = ["alloc"]
3939

40-
4140
[features]
4241
default = ["std"]
43-
std = []
42+
std = ["error"]
43+
error = []

src/quick_check.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,11 @@ use crate::stream_safe;
33
use crate::tables;
44
use crate::UnicodeNormalization;
55

6+
#[cfg(all(feature = "error", not(feature = "std")))]
67
use core::error::Error;
8+
#[cfg(feature = "std")]
9+
use std::error::Error;
10+
711
use core::fmt;
812

913
/// Error returned when a string is not properly normalized.

0 commit comments

Comments
 (0)