Skip to content

Commit 076a244

Browse files
authored
Add clone to sbp frame in rust (#1507)
# Description @swift-nav/algint-team <!-- Changes proposed in this PR --> # API compatibility Does this change introduce a API compatibility risk? <!-- Provide a short explanation why or why not --> ## API compatibility plan If the above is "Yes", please detail the compatibility (or migration) plan: <!-- Provide a short explanation plan here --> # JIRA Reference https://swift-nav.atlassian.net/browse/BOARD-XXXX
1 parent 77ec3b8 commit 076a244

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

rust/sbp/src/de.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@ use dencode::FramedRead;
1111
use futures::StreamExt;
1212

1313
use crate::{
14-
messages::{invalid::Invalid, SbpMsgParseError},
15-
HandleParseError, Sbp, CRC_LEN, HEADER_LEN, MAX_FRAME_LEN, PAYLOAD_INDEX, PREAMBLE,
14+
CRC_LEN, HEADER_LEN, HandleParseError, MAX_FRAME_LEN, PAYLOAD_INDEX, PREAMBLE, Sbp,
15+
messages::{SbpMsgParseError, invalid::Invalid},
1616
};
1717

1818
/// Deserialize the IO stream into an iterator of messages.
@@ -275,7 +275,7 @@ impl dencode::Decoder for FramerImpl {
275275
}
276276

277277
/// The wire representation of an SBP message.
278-
#[derive(Debug)]
278+
#[derive(Debug, Clone)]
279279
pub struct Frame(BytesMut);
280280

281281
impl Frame {

0 commit comments

Comments
 (0)