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 committed Oct 14, 2024
1 parent 5f2ecbe commit 6fe068c
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 6fe068c

Please sign in to comment.