Skip to content

Commit 5bb1ecf

Browse files
removed unused imports
1 parent 2a53f28 commit 5bb1ecf

5 files changed

Lines changed: 4 additions & 9 deletions

File tree

boards/clue_nrf52840/src/main.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,6 @@ use kernel::component::Component;
1515
use kernel::debug::PanicResources;
1616
use kernel::hil;
1717
use kernel::hil::led::LedHigh;
18-
use kernel::hil::symmetric_encryption::AES;
19-
use kernel::hil::time::Alarm;
2018
use kernel::hil::time::Counter;
2119
use kernel::hil::usb::Client;
2220
use kernel::platform::chip::Chip;

boards/components/src/aes.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -47,17 +47,17 @@ macro_rules! aes_mux_component_static {
4747
pub type AesMuxComponentType<A> =
4848
capsules_core::virtualizers::virtual_aes_ccm::MuxAES128CCM<'static, A>;
4949

50-
pub struct AesMuxComponent<A: 'static + AES128<'static> + AES128Ctr + AES128CBC + AES128ECB> {
50+
pub struct AesMuxComponent<A: 'static + AES<'static, AES128> + AESCtr + AESCBC + AESECB> {
5151
aes: &'static A,
5252
}
5353

54-
impl<A: 'static + AES128<'static> + AES128Ctr + AES128CBC + AES128ECB> AesMuxComponent<A> {
54+
impl<A: 'static + AES<'static, AES128> + AESCtr + AESCBC + AESECB> AesMuxComponent<A> {
5555
pub fn new(aes: &'static A) -> Self {
5656
Self { aes }
5757
}
5858
}
5959

60-
impl<A: 'static + AES128<'static> + AES128Ctr + AES128CBC + AES128ECB> Component
60+
impl<A: 'static + AES<'static, AES128> + AESCtr + AESCBC + AESECB> Component
6161
for AesMuxComponent<A>
6262
{
6363
type StaticInput = &'static mut MaybeUninit<
@@ -70,7 +70,7 @@ impl<A: 'static + AES128<'static> + AES128Ctr + AES128CBC + AES128ECB> Component
7070
.write(capsules_core::virtualizers::virtual_aes_ccm::MuxAES128CCM::new(self.aes));
7171

7272
DeferredCallClient::register(aes_mux);
73-
hil::symmetric_encryption::AES128::set_client(self.aes, aes_mux);
73+
hil::symmetric_encryption::AES::set_client(self.aes, aes_mux);
7474

7575
aes_mux
7676
}

boards/nordic/nrf52840_dongle/src/main.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@
1414
use kernel::component::Component;
1515
use kernel::debug::PanicResources;
1616
use kernel::hil::led::LedLow;
17-
use kernel::hil::symmetric_encryption::AES;
1817
use kernel::hil::time::Counter;
1918
use kernel::platform::chip::Chip;
2019
use kernel::platform::{KernelResources, SyscallDriverLookup};

boards/particle_boron/src/main.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@ use kernel::hil::gpio::Configure;
1717
use kernel::hil::gpio::FloatingState;
1818
use kernel::hil::i2c::{I2CMaster, I2CSlave};
1919
use kernel::hil::led::LedLow;
20-
use kernel::hil::symmetric_encryption::AES;
2120
use kernel::hil::time::Counter;
2221
use kernel::platform::chip::Chip;
2322
use kernel::platform::{KernelResources, SyscallDriverLookup};

boards/sma_q3/src/main.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@ use kernel::component::Component;
2020
use kernel::debug::PanicResources;
2121
use kernel::hil::led::LedHigh;
2222
use kernel::hil::screen::Screen;
23-
use kernel::hil::symmetric_encryption::AES;
2423
use kernel::hil::time::Counter;
2524
use kernel::platform::chip::Chip;
2625
use kernel::platform::{KernelResources, SyscallDriverLookup};

0 commit comments

Comments
 (0)