diff --git a/mavlink-core/src/lib.rs b/mavlink-core/src/lib.rs index 8af70ad89bb4792eaa28cd12f4e14332a930bb60..2b5626a263aaade049e9de45ab3e0ff25ffaa3f2 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] }