Fix memory crate test compile.

toolchain_update
WangRunji 6 years ago
parent 528c919626
commit 501ce6c4be

@ -133,7 +133,7 @@ impl MockPageTable {
#[cfg(test)] #[cfg(test)]
mod test { mod test {
use super::*; use super::*;
use alloc::arc::Arc; use alloc::sync::Arc;
use core::cell::RefCell; use core::cell::RefCell;
#[test] #[test]

@ -1,5 +1,5 @@
use super::Swapper; use super::Swapper;
use alloc::btree_map::BTreeMap; use alloc::collections::BTreeMap;
use core::mem::uninitialized; use core::mem::uninitialized;
const PAGE_SIZE: usize = 4096; const PAGE_SIZE: usize = 4096;

@ -135,7 +135,7 @@ impl<T: PageTable, M: SwapManager, S: Swapper> DerefMut for SwapExt<T, M, S> {
mod test { mod test {
use super::*; use super::*;
use super::mock_swapper::MockSwapper; use super::mock_swapper::MockSwapper;
use alloc::{arc::Arc, boxed::Box}; use alloc::{sync::Arc, boxed::Box};
use core::cell::RefCell; use core::cell::RefCell;
use paging::MockPageTable; use paging::MockPageTable;

Loading…
Cancel
Save