Commit 65de6d17 authored by David Brown's avatar David Brown Committed by David Brown
Browse files

sim: mcuboot-sys: 2018 edition fix

Automatic migration to Rust 2018:

    cargo fix --edition

Signed-off-by: default avatarDavid Brown <david.brown@linaro.org>
parent ea25c41a
Loading
Loading
Loading
Loading
+1
Changes for sim/mcuboot-sys/Cargo.toml: 1 added line, 0 removed lines.
Original line number Diff line number Diff line
@@ -5,6 +5,7 @@ authors = ["David Brown <david.brown@linaro.org>"]
description = "A simple wrapper around the mcuboot code."
build = "build.rs"
publish = false
edition = "2018"

[features]
# By default, build with simplistic signature verification.
+3 −3
Changes for sim/mcuboot-sys/src/c.rs: 3 added lines, 3 removed lines.
Original line number Diff line number Diff line
/// Interface wrappers to C API entering to the bootloader

use area::AreaDesc;
use crate::area::AreaDesc;
use simflash::SimFlashMap;
use libc;
use api;
use crate::api;
use std::sync::Mutex;

lazy_static! {
@@ -85,7 +85,7 @@ pub fn kw_encrypt(kek: &[u8], seckey: &[u8]) -> Result<[u8; 24], &'static str> {
}

mod raw {
    use area::CAreaDesc;
    use crate::area::CAreaDesc;
    use libc;

    extern "C" {
+1 −1
Changes for sim/mcuboot-sys/src/lib.rs: 1 added line, 1 removed line.
Original line number Diff line number Diff line
@@ -10,4 +10,4 @@ pub mod c;
// functions are exported to C code.
pub mod api;

pub use area::{AreaDesc, FlashId};
pub use crate::area::{AreaDesc, FlashId};