Skip to content

Commit

Permalink
Merge pull request #241 from matthiasbeyer/fix-write-u32-helper-endia…
Browse files Browse the repository at this point in the history
…n-conversion

Fix: Do not convert to BE in helper fn
  • Loading branch information
TheNeikos authored Mar 22, 2024
2 parents d80f354 + 105abc6 commit 7aec982
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mqtt-format/src/v5/integers.rs
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ pub fn parse_u32(input: &mut &Bytes) -> MResult<u32> {
}

pub async fn write_u32<W: WriteMqttPacket>(buffer: &mut W, u: u32) -> WResult<W> {
buffer.write_u32(u.to_be()).await?;
buffer.write_u32(u).await?;
Ok(())
}

Expand Down

0 comments on commit 7aec982

Please sign in to comment.