Skip to content

Commit 737b196

Browse files
committed
features: drop error_in_core
Rather, predicate it on lack of std. This change supports use of `cargo test --all-features`. Signed-off-by: Andrew Jeffery <andrew@codeconstruct.com.au>
1 parent dd94d12 commit 737b196

2 files changed

Lines changed: 1 addition & 2 deletions

File tree

Cargo.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,6 @@ std = ["deku_derive/std", "bitvec?/std", "alloc", "no_std_io/std"]
2525
alloc = ["bitvec?/alloc"]
2626
logging = ["deku_derive/logging", "log"]
2727
no-assert-string = ["deku_derive/no-assert-string"]
28-
error_in_core = []
2928
bits = ["dep:bitvec", "deku_derive/bits"]
3029

3130
[dependencies]

src/error.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,5 +113,5 @@ impl From<DekuError> for std::io::Error {
113113
}
114114
}
115115

116-
#[cfg(feature = "error_in_core")]
116+
#[cfg(not(feature = "std"))]
117117
impl core::error::Error for DekuError {}

0 commit comments

Comments
 (0)