diff --git a/mavlink-core/src/lib.rs b/mavlink-core/src/lib.rs index 8af70ad89b..2b5626a263 100644 --- a/mavlink-core/src/lib.rs +++ b/mavlink-core/src/lib.rs @@ -325,7 +325,7 @@ impl MAVLinkV1MessageRaw { } #[inline] - pub fn header(&mut self) -> &[u8] { + pub fn header(&self) -> &[u8] { &self.0[1..=Self::HEADER_SIZE] }