Skip to content

Commit 6fe068c

Browse files
mavlink-core: MAVLinkV1MessageRaw::header should not require mut
1 parent 5f2ecbe commit 6fe068c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

mavlink-core/src/lib.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -325,7 +325,7 @@ impl MAVLinkV1MessageRaw {
325325
}
326326

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

0 commit comments

Comments
 (0)