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 bda0ca2 commit 8c2c0a2Copy full SHA for 8c2c0a2
src/eth.rs
@@ -328,6 +328,14 @@ impl Device {
328
Self{ rx: RxRing::new(), tx: TxRing::new() }
329
}
330
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
339
// After `init` is called, `Device` shall not be moved.
340
pub unsafe fn init(&mut self, mac: EthernetAddress,
341
eth_mac: &pac::ETHERNET_MAC,
src/main.rs
@@ -1,4 +1,5 @@
1
#![deny(warnings)]
2
+#![allow(clippy::missing_safety_doc)]
3
4
#![no_std]
5
#![no_main]
0 commit comments