Skip to content

Commit a15a7e7

Browse files
committed
clippy again
Signed-off-by: Michael Lodder <redmike7@gmail.com>
1 parent 18d6a30 commit a15a7e7

1 file changed

Lines changed: 2 additions & 4 deletions

File tree

src/keyring/keyringsecret.rs

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -75,10 +75,8 @@ impl KeyRingSecret {
7575

7676
#[cfg(feature = "serde")]
7777
pub fn to_serde<D: DeserializeOwned>(&self) -> Result<D, KeyRingError> {
78-
Ok(
79-
postcard::from_bytes(&self.0)
80-
.map_err(|e| KeyRingError::from(e.to_string().as_str()))?,
81-
)
78+
postcard::from_bytes(&self.0)
79+
.map_err(|e| KeyRingError::from(e.to_string().as_str()))
8280
}
8381
}
8482

0 commit comments

Comments
 (0)