Skip to content

Commit 71fc02f

Browse files
committed
feature gate core::error
1 parent 6c7ecfb commit 71fc02f

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,14 +7,14 @@ license = "MIT OR Apache-2.0"
77
edition = "2021"
88
repository = "https://github.com/rust-embedded-community/menu"
99
readme = "README.md"
10-
rust-version = "1.81.0"
1110

1211
[dependencies]
1312
embedded-io = "0.6.1"
1413
noline = { version = "0.5.0", optional = true }
1514

1615
[features]
1716
default = ["echo"]
17+
error-in-core = [] # requires rust 1.81.0
1818
echo = []
1919

2020
[dev-dependencies]

src/lib.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -133,6 +133,7 @@ impl core::fmt::Display for Error {
133133
}
134134
}
135135

136+
#[cfg(feature = "error-in-core")]
136137
impl core::error::Error for Error {}
137138

138139
/// Looks for the named parameter in the parameter list of the item, then

0 commit comments

Comments
 (0)