Commit 29b0b5ec authored by David Brown's avatar David Brown Committed by David Brown
Browse files

sim: fixes for 2018

Automatic migration to Rust 2018.  This is the result of running

    cargo fix --edition

The resulting code is compatible with both Rust 2015 and 2018.  Change
the edition field in the Cargo.toml file as well to begin a more
complete migration.

Signed-off-by: default avatarDavid Brown <david.brown@linaro.org>
parent 2821564b
Loading
Loading
Loading
Loading
+1
Changes for sim/Cargo.toml: 1 added line, 0 removed lines.
Original line number Diff line number Diff line
@@ -2,6 +2,7 @@
name = "bootsim"
version = "0.1.0"
authors = ["David Brown <davidb@davidb.org>"]
edition = "2018"

[features]
default = []
+2 −2
Changes for sim/src/lib.rs: 2 added lines, 2 removed lines.
Original line number Diff line number Diff line
@@ -30,8 +30,8 @@ pub mod testlog;

use simflash::{Flash, SimFlash, SimFlashMap};
use mcuboot_sys::{c, AreaDesc, FlashId};
use caps::Caps;
use tlv::{TlvGen, TlvFlags, AES_SEC_KEY};
use crate::caps::Caps;
use crate::tlv::{TlvGen, TlvFlags, AES_SEC_KEY};

const USAGE: &'static str = "
Mcuboot simulator