Migrate import statements and macros to Rust 2018.

This commit is contained in:
Guillaume Endignoux
2020-09-23 13:47:20 +02:00
parent 55c9053baf
commit 85a34ad085
35 changed files with 81 additions and 70 deletions

View File

@@ -14,6 +14,7 @@
use super::{Index, Storage, StorageError, StorageResult};
use alloc::boxed::Box;
use alloc::vec;
pub struct BufferStorage {
storage: Box<[u8]>,

View File

@@ -14,6 +14,7 @@
use super::super::{Index, Storage};
use super::{bitfield, StoreConfig, StoreEntry, StoreError};
use alloc::vec;
use alloc::vec::Vec;
/// Whether a user entry is a replace entry.

View File

@@ -169,6 +169,7 @@ use crate::embedded_flash::BufferStorage;
#[cfg(any(test, feature = "ram_storage"))]
use alloc::boxed::Box;
use alloc::collections::BTreeMap;
use alloc::vec;
use alloc::vec::Vec;
/// Configures a store.