Skip to content
This repository was archived by the owner on Jan 22, 2026. It is now read-only.

Commit 8321fc0

Browse files
committed
Fix clippy 0.1.66
1 parent 6e64291 commit 8321fc0

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

src/interface.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -214,7 +214,7 @@ impl HWIClient {
214214
&self,
215215
psbt: &PartiallySignedTransaction,
216216
) -> Result<HWIPartiallySignedTransaction, Error> {
217-
let psbt = base64::encode(&serialize(psbt));
217+
let psbt = base64::encode(serialize(psbt));
218218
Python::with_gil(|py| {
219219
let output = self
220220
.hwilib

src/types.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ pub struct HWISignature {
3535

3636
fn from_b64<'de, D: Deserializer<'de>>(d: D) -> Result<Vec<u8>, D::Error> {
3737
let b64_string = String::deserialize(d)?;
38-
base64::decode(&b64_string)
38+
base64::decode(b64_string)
3939
.map_err(|_| serde::de::Error::custom("Error while Deserializing Signature"))
4040
}
4141

@@ -62,7 +62,7 @@ fn deserialize_psbt<'de, D: Deserializer<'de>>(
6262
d: D,
6363
) -> Result<PartiallySignedTransaction, D::Error> {
6464
let b64_string = String::deserialize(d)?;
65-
let bytes = base64::decode(&b64_string).map_err(serde::de::Error::custom)?;
65+
let bytes = base64::decode(b64_string).map_err(serde::de::Error::custom)?;
6666
bitcoin::consensus::deserialize::<PartiallySignedTransaction>(&bytes[..])
6767
.map_err(serde::de::Error::custom)
6868
}

0 commit comments

Comments
 (0)