Skip to content

Commit 50b5a12

Browse files
committed
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>
1 parent 1997f53 commit 50b5a12

File tree

5 files changed

+0
-9
lines changed

5 files changed

+0
-9
lines changed

sim/mcuboot-sys/src/api.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66
//! HAL api for MyNewt applications
77
88
use crate::area::CAreaDesc;
9-
use libc;
109
use log::{Level, log_enabled, warn};
1110
use simflash::{Result, Flash, FlashPtr};
1211
use std::{

sim/mcuboot-sys/src/c.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,6 @@ pub fn kw_encrypt(kek: &[u8], seckey: &[u8]) -> Result<[u8; 24], &'static str> {
8282
mod raw {
8383
use crate::area::CAreaDesc;
8484
use crate::api::CSimContext;
85-
use libc;
8685

8786
extern "C" {
8887
// This generates a warning about `CAreaDesc` not being foreign safe. There doesn't appear to

sim/src/main.rs

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,6 @@
33
//
44
// SPDX-License-Identifier: Apache-2.0
55

6-
use env_logger;
7-
8-
use bootsim;
9-
106
fn main() {
117
env_logger::init();
128

sim/src/testlog.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@
1111
//! function, which should be called at the beginning of each test, will setup logging for all of
1212
//! the tests.
1313
14-
use env_logger;
1514
use std::sync::Once;
1615

1716
static INIT: Once = Once::new();

sim/src/tlv.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,6 @@ use byteorder::{
1717
LittleEndian, WriteBytesExt,
1818
};
1919
use crate::image::ImageVersion;
20-
use pem;
21-
use base64;
2220
use log::info;
2321
use ring::{digest, rand, agreement, hkdf, hmac};
2422
use ring::rand::SecureRandom;

0 commit comments

Comments
 (0)