Skip to content

Commit 3d610be

Browse files
clippy
1 parent 4365435 commit 3d610be

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

monero-oxide-ext/src/lib.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ impl PrivateKey {
4141

4242
impl fmt::Display for PrivateKey {
4343
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
44-
write!(f, "{}", hex::encode(&self.as_bytes()))
44+
write!(f, "{}", hex::encode(self.as_bytes()))
4545
}
4646
}
4747

@@ -122,7 +122,7 @@ pub mod serde_compressed_edwards {
122122
.ok_or_else(|| serde::de::Error::invalid_length(i, &"expected 32 bytes"))?;
123123
}
124124
Ok(PublicKey::from_slice(&bytes)
125-
.map_err(|e| serde::de::Error::custom(e))?
125+
.map_err(serde::de::Error::custom)?
126126
.point)
127127
}
128128
}
@@ -200,7 +200,7 @@ impl From<curve25519_dalek_ng::edwards::CompressedEdwardsY> for PublicKey {
200200

201201
impl fmt::Display for PublicKey {
202202
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
203-
write!(f, "{}", hex::encode(&self.as_bytes()))
203+
write!(f, "{}", hex::encode(self.as_bytes()))
204204
}
205205
}
206206

0 commit comments

Comments
 (0)