Skip to content

Commit

Permalink
fixup! Update src/gcoap.rs
Browse files Browse the repository at this point in the history
  • Loading branch information
maribu committed Oct 16, 2024
1 parent a75b7b2 commit 0c0bce4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/gcoap.rs
Original file line number Diff line number Diff line change
Expand Up @@ -380,7 +380,7 @@ impl<'b> PacketBuffer<'b> {
}

pub fn set_code_raw(&mut self, code: u8) {
unsafe { riot_sys::inline::coap_pkt_set_code(crate::inline_cast_ref(self.pkt), code) };
unsafe { riot_sys::inline::coap_pkt_set_code(crate::inline_cast_ref_mut(self.pkt), code) };
}

/// Return the total number of bytes in the message, given that `payload_used` bytes were
Expand Down

0 comments on commit 0c0bce4

Please sign in to comment.