We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0cd34b7 commit 36d80e7Copy full SHA for 36d80e7
src/i2c/dma.rs
@@ -16,6 +16,7 @@ pub enum Error {
16
}
17
18
/// Tag for TX/RX channel that a corresponding channel should not be used in DMA mode
19
+#[non_exhaustive]
20
pub struct NoDMA;
21
22
/// Callback type to notify user code of completion I2C transfers
@@ -256,7 +257,7 @@ where
256
257
I2C: Instance,
258
TX_STREAM: Stream,
259
{
- pub fn new(stream: TX_STREAM) -> Self {
260
+ fn new(stream: TX_STREAM) -> Self {
261
let tx = Tx { i2c: PhantomData };
262
263
Self {
@@ -321,7 +322,7 @@ where
321
322
323
RX_STREAM: Stream,
324
- pub fn new(stream: RX_STREAM) -> Self {
325
+ fn new(stream: RX_STREAM) -> Self {
326
let tx = Rx { i2c: PhantomData };
327
328
0 commit comments