Skip to content

Commit

Permalink
fix: extra ref
Browse files Browse the repository at this point in the history
  • Loading branch information
prestwich committed Dec 27, 2024
1 parent 45d2694 commit b6c3d74
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/support/borsh.rs
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ impl<const BITS: usize, const LIMBS: usize> BorshSerialize for Uint<BITS, LIMBS>
#[inline]
fn serialize<W: io::Write>(&self, writer: &mut W) -> io::Result<()> {
#[cfg(target_endian = "little")]
return writer.write_all(&self.as_le_slice()[..Self::BYTES]);
return writer.write_all(self.as_le_slice()[..Self::BYTES]);

// TODO: Replace the unsafety with `generic_const_exprs` when
// available
Expand Down

0 comments on commit b6c3d74

Please sign in to comment.