From 5d029cbf42621452666bd084f7beecb7d3d885a4 Mon Sep 17 00:00:00 2001 From: Nora Widdecke Date: Tue, 6 Apr 2021 21:24:59 +0200 Subject: Lint: Remove unnecessary conversions. - https://rust-lang.github.io/rust-clippy/master/index.html#useless_conversion --- store/src/lib.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'store') diff --git a/store/src/lib.rs b/store/src/lib.rs index 7c6041d9..1de01573 100644 --- a/store/src/lib.rs +++ b/store/src/lib.rs @@ -697,7 +697,7 @@ impl Binding { make_request_map!( self.core.borrow_mut(), request, - |data| Cert::from_bytes(data).map_err(|e| e.into())) + |data| Cert::from_bytes(data)) } /// Forces a keyrotation to the given Cert. @@ -754,7 +754,7 @@ impl Binding { make_request_map!( self.core.borrow_mut(), request, - |data| Cert::from_bytes(data).map_err(|e| e.into())) + |data| Cert::from_bytes(data)) } /// Deletes this binding. @@ -846,7 +846,7 @@ impl Key { pub fn cert(&self) -> Result { make_request_map!(self.core.borrow_mut(), self.key.cert_request(), - |cert| Cert::from_bytes(cert).map_err(|e| e.into())) + |cert| Cert::from_bytes(cert)) } /// Returns stats for this key. @@ -905,7 +905,7 @@ impl Key { make_request_map!( self.core.borrow_mut(), request, - |data| Cert::from_bytes(data).map_err(|e| e.into())) + |data| Cert::from_bytes(data)) } /// Lists all log entries related to this key. -- cgit v1.2.3