diff --git a/ssh-key/src/signature.rs b/ssh-key/src/signature.rs index c70a697e..f89748db 100644 --- a/ssh-key/src/signature.rs +++ b/ssh-key/src/signature.rs @@ -222,11 +222,10 @@ impl SignatureEncoding for Signature { /// Decode [`Signature`] from an [`Algorithm`]-prefixed OpenSSH-encoded bytestring. impl TryFrom<&[u8]> for Signature { - // TODO(tarcieri): use `ssh_key::Error` instead of `signature::Error` - type Error = signature::Error; + type Error = Error; - fn try_from(mut bytes: &[u8]) -> signature::Result { - Ok(Self::decode(&mut bytes)?) + fn try_from(mut bytes: &[u8]) -> Result { + Self::decode(&mut bytes) } }