diff options
author | Nora Widdecke <nora@sequoia-pgp.org> | 2021-04-06 21:24:59 +0200 |
---|---|---|
committer | Nora Widdecke <nora@sequoia-pgp.org> | 2021-04-09 13:13:58 +0200 |
commit | 5d029cbf42621452666bd084f7beecb7d3d885a4 (patch) | |
tree | 21219c5864beac97ff5c55c78b436918034adcd6 /store | |
parent | 9424cd350f32a97479a74d919c646f9e26c2ebce (diff) |
Lint: Remove unnecessary conversions.
- https://rust-lang.github.io/rust-clippy/master/index.html#useless_conversion
Diffstat (limited to 'store')
-rw-r--r-- | store/src/lib.rs | 8 |
1 files changed, 4 insertions, 4 deletions
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<Cert> { 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. |