Skip to content

Commit

Permalink
fix: change reader_ref method to return an immutable reference
Browse files Browse the repository at this point in the history
  • Loading branch information
kusstas committed Dec 23, 2024
1 parent 771564f commit b18d43c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mavlink-core/src/peek_reader.rs
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ impl<R: Read, const BUFFER_SIZE: usize> PeekReader<R, BUFFER_SIZE> {
/// Returns an immutable reference to the underlying [`std::io::Read`]er
///
/// Reading directly from the underlying stream will cause data loss
pub fn reader_ref(&mut self) -> &R {
pub fn reader_ref(&self) -> &R {
&self.reader
}

Expand Down

0 comments on commit b18d43c

Please sign in to comment.