Skip to content

Commit 2798f79

Browse files
authored
dsa: remove std feature (#980)
It isn't actually used for anything, and with a hard dependency on `alloc` and `core::error::Error` we can always capture `Box<std::error::Error>` in `signature::Error`.
1 parent daf1f36 commit 2798f79

File tree

2 files changed

+1
-3
lines changed

2 files changed

+1
-3
lines changed

dsa/Cargo.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,6 @@ sha1 = "0.11.0-rc.0"
3636
der = { version = "0.8.0-rc.1", features = ["derive"] }
3737

3838
[features]
39-
std = []
4039
hazmat = []
4140

4241
[package.metadata.docs.rs]

dsa/src/lib.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -185,8 +185,7 @@ impl TryFrom<&[u8]> for Signature {
185185
type Error = signature::Error;
186186

187187
fn try_from(bytes: &[u8]) -> signature::Result<Self> {
188-
// TODO(tarcieri): capture error source when `std` feature enabled
189-
Self::from_der(bytes).map_err(|_| signature::Error::new())
188+
Self::from_der(bytes).map_err(signature::Error::from_source)
190189
}
191190
}
192191

0 commit comments

Comments
 (0)