diff --git a/sim/mcuboot-sys/src/api.rs b/sim/mcuboot-sys/src/api.rs index 8b180cf8..8f8b7be2 100644 --- a/sim/mcuboot-sys/src/api.rs +++ b/sim/mcuboot-sys/src/api.rs @@ -6,7 +6,6 @@ //! HAL api for MyNewt applications use crate::area::CAreaDesc; -use libc; use log::{Level, log_enabled, warn}; use simflash::{Result, Flash, FlashPtr}; use std::{ diff --git a/sim/mcuboot-sys/src/c.rs b/sim/mcuboot-sys/src/c.rs index b1689738..fa2a3dd9 100644 --- a/sim/mcuboot-sys/src/c.rs +++ b/sim/mcuboot-sys/src/c.rs @@ -82,7 +82,6 @@ pub fn kw_encrypt(kek: &[u8], seckey: &[u8]) -> Result<[u8; 24], &'static str> { mod raw { use crate::area::CAreaDesc; use crate::api::CSimContext; - use libc; extern "C" { // This generates a warning about `CAreaDesc` not being foreign safe. There doesn't appear to diff --git a/sim/src/main.rs b/sim/src/main.rs index fd5c0162..85036a83 100644 --- a/sim/src/main.rs +++ b/sim/src/main.rs @@ -3,10 +3,6 @@ // // SPDX-License-Identifier: Apache-2.0 -use env_logger; - -use bootsim; - fn main() { env_logger::init(); diff --git a/sim/src/testlog.rs b/sim/src/testlog.rs index 16cd256a..77619e4e 100644 --- a/sim/src/testlog.rs +++ b/sim/src/testlog.rs @@ -11,7 +11,6 @@ //! function, which should be called at the beginning of each test, will setup logging for all of //! the tests. -use env_logger; use std::sync::Once; static INIT: Once = Once::new(); diff --git a/sim/src/tlv.rs b/sim/src/tlv.rs index 69d542c0..68bfaf73 100644 --- a/sim/src/tlv.rs +++ b/sim/src/tlv.rs @@ -17,8 +17,6 @@ use byteorder::{ LittleEndian, WriteBytesExt, }; use crate::image::ImageVersion; -use pem; -use base64; use log::info; use ring::{digest, rand, agreement, hkdf, hmac}; use ring::rand::SecureRandom;