sim: Remove pointless use lines
Top-level crates are available by name. A use of these names is redundant, so remove these. Signed-off-by: David Brown <david.brown@linaro.org>
This commit is contained in:
parent
1997f539f7
commit
50b5a12c31
|
@ -6,7 +6,6 @@
|
||||||
//! HAL api for MyNewt applications
|
//! HAL api for MyNewt applications
|
||||||
|
|
||||||
use crate::area::CAreaDesc;
|
use crate::area::CAreaDesc;
|
||||||
use libc;
|
|
||||||
use log::{Level, log_enabled, warn};
|
use log::{Level, log_enabled, warn};
|
||||||
use simflash::{Result, Flash, FlashPtr};
|
use simflash::{Result, Flash, FlashPtr};
|
||||||
use std::{
|
use std::{
|
||||||
|
|
|
@ -82,7 +82,6 @@ pub fn kw_encrypt(kek: &[u8], seckey: &[u8]) -> Result<[u8; 24], &'static str> {
|
||||||
mod raw {
|
mod raw {
|
||||||
use crate::area::CAreaDesc;
|
use crate::area::CAreaDesc;
|
||||||
use crate::api::CSimContext;
|
use crate::api::CSimContext;
|
||||||
use libc;
|
|
||||||
|
|
||||||
extern "C" {
|
extern "C" {
|
||||||
// This generates a warning about `CAreaDesc` not being foreign safe. There doesn't appear to
|
// This generates a warning about `CAreaDesc` not being foreign safe. There doesn't appear to
|
||||||
|
|
|
@ -3,10 +3,6 @@
|
||||||
//
|
//
|
||||||
// SPDX-License-Identifier: Apache-2.0
|
// SPDX-License-Identifier: Apache-2.0
|
||||||
|
|
||||||
use env_logger;
|
|
||||||
|
|
||||||
use bootsim;
|
|
||||||
|
|
||||||
fn main() {
|
fn main() {
|
||||||
env_logger::init();
|
env_logger::init();
|
||||||
|
|
||||||
|
|
|
@ -11,7 +11,6 @@
|
||||||
//! function, which should be called at the beginning of each test, will setup logging for all of
|
//! function, which should be called at the beginning of each test, will setup logging for all of
|
||||||
//! the tests.
|
//! the tests.
|
||||||
|
|
||||||
use env_logger;
|
|
||||||
use std::sync::Once;
|
use std::sync::Once;
|
||||||
|
|
||||||
static INIT: Once = Once::new();
|
static INIT: Once = Once::new();
|
||||||
|
|
|
@ -17,8 +17,6 @@ use byteorder::{
|
||||||
LittleEndian, WriteBytesExt,
|
LittleEndian, WriteBytesExt,
|
||||||
};
|
};
|
||||||
use crate::image::ImageVersion;
|
use crate::image::ImageVersion;
|
||||||
use pem;
|
|
||||||
use base64;
|
|
||||||
use log::info;
|
use log::info;
|
||||||
use ring::{digest, rand, agreement, hkdf, hmac};
|
use ring::{digest, rand, agreement, hkdf, hmac};
|
||||||
use ring::rand::SecureRandom;
|
use ring::rand::SecureRandom;
|
||||||
|
|
Loading…
Reference in New Issue