Skip to content

Commit cdf6677

Browse files
authored
signature: remove Default bound on SignatureEncoding::Repr (#1143)
Unfortunately the `Default` impl on `core` array types is still problematic here: error[E0277]: the trait bound `[u8; 64]: Default` is not satisfied --> ed25519/src/lib.rs:339:17 | 339 | type Repr = SignatureBytes; | ^^^^^^^^^^^^^^ the trait `Default` is not implemented for `[u8; 64]`
1 parent 36aa416 commit cdf6677

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

signature/src/encoding.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ pub trait SignatureEncoding:
1010
Clone + Sized + for<'a> TryFrom<&'a [u8], Error = Error> + Into<Self::Repr>
1111
{
1212
/// Byte representation of a signature.
13-
type Repr: 'static + AsRef<[u8]> + AsMut<[u8]> + Clone + Default + Send + Sync;
13+
type Repr: 'static + AsRef<[u8]> + AsMut<[u8]> + Clone + Send + Sync;
1414

1515
/// Decode signature from its byte representation.
1616
fn from_bytes(bytes: &Self::Repr) -> Result<Self> {

0 commit comments

Comments
 (0)