Fix memory crate test compile.

master
WangRunji 6 years ago
parent 528c919626
commit 501ce6c4be

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

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

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

Loading…
Cancel
Save