clippy: allow missing safety doc (rtfm)
This commit is contained in:
parent
bda0ca26fb
commit
8c2c0a2027
|
@ -328,6 +328,14 @@ impl Device {
|
||||||
Self{ rx: RxRing::new(), tx: TxRing::new() }
|
Self{ rx: RxRing::new(), tx: TxRing::new() }
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Initialize the ethernet peripherals
|
||||||
|
//
|
||||||
|
// # Safety
|
||||||
|
//
|
||||||
|
// This iis transitively unsafe since it sets potentially
|
||||||
|
// unsafe register values. Might ultimately be safe if the values
|
||||||
|
// are correct.
|
||||||
|
//
|
||||||
// After `init` is called, `Device` shall not be moved.
|
// After `init` is called, `Device` shall not be moved.
|
||||||
pub unsafe fn init(&mut self, mac: EthernetAddress,
|
pub unsafe fn init(&mut self, mac: EthernetAddress,
|
||||||
eth_mac: &pac::ETHERNET_MAC,
|
eth_mac: &pac::ETHERNET_MAC,
|
||||||
|
|
|
@ -1,4 +1,5 @@
|
||||||
#![deny(warnings)]
|
#![deny(warnings)]
|
||||||
|
#![allow(clippy::missing_safety_doc)]
|
||||||
|
|
||||||
#![no_std]
|
#![no_std]
|
||||||
#![no_main]
|
#![no_main]
|
||||||
|
|
Loading…
Reference in New Issue