Skip to content

Commit

Permalink
Again lint
Browse files Browse the repository at this point in the history
  • Loading branch information
yaziciahmet committed Aug 12, 2024
1 parent 22a0481 commit 1405c96
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions crates/bitcoin-da/src/spec/header.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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(())
}
}
Expand All @@ -94,7 +94,7 @@ impl BorshDeserialize for BitcoinHeaderWrapper {
#[inline]
fn deserialize_reader<R: borsh::io::Read>(reader: &mut R) -> borsh::io::Result<Self> {
let mut buf = vec![];
reader
let _ = reader
.read(&mut buf)
.expect("Borsh reader should never fail");

Expand Down
4 changes: 2 additions & 2 deletions crates/bitcoin-da/src/spec/transaction.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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(())
}
}
Expand All @@ -46,7 +46,7 @@ impl BorshDeserialize for TransactionWrapper {
#[inline]
fn deserialize_reader<R: borsh::io::Read>(reader: &mut R) -> borsh::io::Result<Self> {
let mut buf = vec![];
reader
let _ = reader
.read(&mut buf)
.expect("Borsh reader should never fail");

Expand Down

0 comments on commit 1405c96

Please sign in to comment.