Import interfaces only when used

Fixes clippy noserial check deny(unused_imports).
This commit is contained in:
Berkus Decker 2021-07-11 20:27:41 +03:00
parent 7af16897ec
commit 36b2d92515
1 changed files with 3 additions and 1 deletions

View File

@ -5,13 +5,15 @@
* Original code distributed under MIT, additional changes are under BlueOak-1.0.0
*/
#[cfg(not(feature = "noserial"))]
use tock_registers::interfaces::{Readable, Writeable};
use {
super::{gpio, BcmHost},
crate::devices::ConsoleOps,
cfg_if::cfg_if,
core::{convert::From, fmt, ops},
tock_registers::{
interfaces::{ReadWriteable, Readable, Writeable},
interfaces::ReadWriteable,
register_bitfields,
registers::{ReadOnly, ReadWrite, WriteOnly},
},