Skip to content

Commit 0ddc3f2

Browse files
committed
Make mctp_estack::fragment public
That makes Fragmenter no longer a top level struct, since it isn't commonly used. Signed-off-by: Matt Johnston <matt@codeconstruct.com.au>
1 parent 7abd218 commit 0ddc3f2

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

mctp-estack/src/lib.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ use heapless::FnvIndexMap;
3939
use mctp::{Eid, Error, MsgType, Result, Tag, TagValue};
4040

4141
pub mod control;
42-
mod fragment;
42+
pub mod fragment;
4343
pub mod i2c;
4444
mod reassemble;
4545
pub mod router;
@@ -48,7 +48,7 @@ pub mod usb;
4848
#[macro_use]
4949
mod util;
5050

51-
pub use fragment::{Fragmenter, SendOutput};
51+
use fragment::{Fragmenter, SendOutput};
5252
use reassemble::Reassembler;
5353
pub use router::Router;
5454

standalone/src/serial.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,8 @@ use smol::Timer;
1616

1717
use mctp::{Eid, Error, MsgType, Result, Tag, TagValue};
1818
use mctp_estack::{
19-
serial::MctpSerialHandler, MctpMessage, ReceiveHandle, SendOutput, Stack,
19+
fragment::SendOutput, serial::MctpSerialHandler, MctpMessage,
20+
ReceiveHandle, Stack,
2021
};
2122

2223
struct Inner<S: Read + Write> {

0 commit comments

Comments
 (0)