Skip to content

Commit 8c2c0a2

Browse files
committed
clippy: allow missing safety doc (rtfm)
1 parent bda0ca2 commit 8c2c0a2

File tree

2 files changed

+9
-0
lines changed

2 files changed

+9
-0
lines changed

src/eth.rs

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -328,6 +328,14 @@ impl Device {
328328
Self{ rx: RxRing::new(), tx: TxRing::new() }
329329
}
330330

331+
// Initialize the ethernet peripherals
332+
//
333+
// # Safety
334+
//
335+
// This iis transitively unsafe since it sets potentially
336+
// unsafe register values. Might ultimately be safe if the values
337+
// are correct.
338+
//
331339
// After `init` is called, `Device` shall not be moved.
332340
pub unsafe fn init(&mut self, mac: EthernetAddress,
333341
eth_mac: &pac::ETHERNET_MAC,

src/main.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
#![deny(warnings)]
2+
#![allow(clippy::missing_safety_doc)]
23

34
#![no_std]
45
#![no_main]

0 commit comments

Comments
 (0)