From 1405c965c2d51731485713873d0621d8a4bdb0ca Mon Sep 17 00:00:00 2001 From: yaziciahmet Date: Mon, 12 Aug 2024 14:02:27 +0300 Subject: [PATCH] Again lint --- crates/bitcoin-da/src/spec/header.rs | 4 ++-- crates/bitcoin-da/src/spec/transaction.rs | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/crates/bitcoin-da/src/spec/header.rs b/crates/bitcoin-da/src/spec/header.rs index 3e61b68acf..ea5ad9705c 100644 --- a/crates/bitcoin-da/src/spec/header.rs +++ b/crates/bitcoin-da/src/spec/header.rs @@ -85,7 +85,7 @@ impl BorshSerialize for BitcoinHeaderWrapper { Encodable::consensus_encode(&self.header, &mut buf) .expect("Bitcoin Header serialization cannot fail"); - writer.write(&buf).expect("Borsh writer should never fail"); + let _ = writer.write(&buf).expect("Borsh writer should never fail"); Ok(()) } } @@ -94,7 +94,7 @@ impl BorshDeserialize for BitcoinHeaderWrapper { #[inline] fn deserialize_reader(reader: &mut R) -> borsh::io::Result { let mut buf = vec![]; - reader + let _ = reader .read(&mut buf) .expect("Borsh reader should never fail"); diff --git a/crates/bitcoin-da/src/spec/transaction.rs b/crates/bitcoin-da/src/spec/transaction.rs index ac754fdafe..3251edeb9b 100644 --- a/crates/bitcoin-da/src/spec/transaction.rs +++ b/crates/bitcoin-da/src/spec/transaction.rs @@ -37,7 +37,7 @@ impl BorshSerialize for TransactionWrapper { Encodable::consensus_encode(&self.tx, &mut buf) .expect("Bitcoin Transaction serialization cannot fail"); - writer.write(&buf).expect("Borsh writer should never fail"); + let _ = writer.write(&buf).expect("Borsh writer should never fail"); Ok(()) } } @@ -46,7 +46,7 @@ impl BorshDeserialize for TransactionWrapper { #[inline] fn deserialize_reader(reader: &mut R) -> borsh::io::Result { let mut buf = vec![]; - reader + let _ = reader .read(&mut buf) .expect("Borsh reader should never fail");