Skip to content

Commit 0e669dc

Browse files
pv42patrickelectric
authored andcommitted
remove panic doc from MavFrame::deser
1 parent c05e756 commit 0e669dc

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

mavlink-core/src/lib.rs

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -350,13 +350,10 @@ impl<M: Message> MavFrame<M> {
350350
/// The input buffer should start with the sequence field of the MAVLink frame. The
351351
/// initial packet marker, length field, and flag fields should be excluded.
352352
///
353-
/// # Panics
354-
///
355-
/// Will panic if the buffer provided does not contain a full message
356-
///
357353
/// # Errors
358354
///
359-
/// Will return a [`ParserError`] if a message was found but could not be parsed
355+
/// Will return a [`ParserError`] if a message was found but could not be parsed
356+
/// or the if the buffer provided does not contain a full message
360357
pub fn deser(version: MavlinkVersion, input: &[u8]) -> Result<Self, ParserError> {
361358
let mut buf = Bytes::new(input);
362359

0 commit comments

Comments
 (0)