Skip to content

Commit

Permalink
mavlink-core: MAVLinkV1MessageRaw::header should not require mut
Browse files Browse the repository at this point in the history
  • Loading branch information
joaoantoniocardoso authored and patrickelectric committed Nov 28, 2024
1 parent 90d2ad4 commit c80321b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mavlink-core/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -325,7 +325,7 @@ impl MAVLinkV1MessageRaw {
}

#[inline]
pub fn header(&mut self) -> &[u8] {
pub fn header(&self) -> &[u8] {
&self.0[1..=Self::HEADER_SIZE]
}

Expand Down

0 comments on commit c80321b

Please sign in to comment.