We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d93565e commit ac6c0bdCopy full SHA for ac6c0bd
src/borsh_impl.rs
@@ -10,7 +10,7 @@ where
10
{
11
fn deserialize_reader<R: Read>(reader: &mut R) -> io::Result<Self> {
12
fn deserialize_u32_as_usize<R: Read>(reader: &mut R) -> io::Result<usize> {
13
- let x = u32::from_le(u32::deserialize_reader(reader)?);
+ let x = u32::deserialize_reader(reader)?;
14
usize::try_from(x).map_err(io::Error::other)
15
}
16
@@ -85,7 +85,7 @@ where
85
86
fn serialize<W: Write>(&self, writer: &mut W) -> io::Result<()> {
87
fn serialize_usize_as_u32<W: Write>(x: usize, writer: &mut W) -> io::Result<()> {
88
- let x = u32::try_from(x).map_err(io::Error::other)?.to_le();
+ let x = u32::try_from(x).map_err(io::Error::other)?;
89
BorshSerialize::serialize(&x, writer)
90
91
0 commit comments