Skip to content

Commit 5cacd65

Browse files
authored
signature: Remove blanket SignerMut impl (breaking change) (#1915)
As discussed in #1914.
1 parent ba41e2c commit 5cacd65

File tree

2 files changed

+1
-7
lines changed

2 files changed

+1
-7
lines changed

signature/CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
1414
### Removed
1515
- `std` feature - replaced with `core::error::Error`
1616
- `derive` feature
17+
- `SignerMut` blanket implementation for `Signer`
1718

1819
[#1448]: https://github.com/RustCrypto/traits/pull/1448
1920
[#1759]: https://github.com/RustCrypto/traits/pull/1759

signature/src/signer.rs

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -55,13 +55,6 @@ pub trait SignerMut<S> {
5555
fn try_sign(&mut self, msg: &[u8]) -> Result<S, Error>;
5656
}
5757

58-
/// Blanket impl of [`SignerMut`] for all [`Signer`] types.
59-
impl<S, T: Signer<S>> SignerMut<S> for T {
60-
fn try_sign(&mut self, msg: &[u8]) -> Result<S, Error> {
61-
T::try_sign(self, msg)
62-
}
63-
}
64-
6558
/// Sign the given prehashed message [`Digest`] using `Self`.
6659
///
6760
/// ## Notes

0 commit comments

Comments
 (0)