From 0bb742a4d2c23a6bf413a384ca15ce55d162fb15 Mon Sep 17 00:00:00 2001 From: Anatolii Kurotych Date: Mon, 5 Feb 2024 18:13:32 +0200 Subject: [PATCH] Remove useless map_err --- src/ed25519/mod.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ed25519/mod.rs b/src/ed25519/mod.rs index 613aab1..0734666 100644 --- a/src/ed25519/mod.rs +++ b/src/ed25519/mod.rs @@ -153,7 +153,7 @@ impl TryFrom<&[u8]> for Signature { type Error = Error; fn try_from(input: &[u8]) -> Result { - Signature::from_bytes(input).map_err(Error::from) + Signature::from_bytes(input) } }