aboutsummaryrefslogtreecommitdiff
path: root/src/memory.rs
diff options
context:
space:
mode:
authorDavid Li <li.davidm96@gmail.com>2016-01-06 10:51:37 -0700
committerDavid Li <li.davidm96@gmail.com>2016-01-06 10:51:37 -0700
commitb7111860f29bb123365794a8cdabbbf473463204 (patch)
treed6533127bcacd74b2fbe90874bede83f90fcb33f /src/memory.rs
parente6d2693a836788894373af1b35ed678b3561f6ac (diff)
Get rid of Box in memory refs
Diffstat (limited to 'src/memory.rs')
-rw-r--r--src/memory.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/memory.rs b/src/memory.rs
index 2e59ff1..226b6c2 100644
--- a/src/memory.rs
+++ b/src/memory.rs
@@ -89,7 +89,7 @@ pub trait MemoryInterface {
}
}
-pub type SharedMemory<'a> = Rc<RefCell<Box<MemoryInterface + 'a>>>;
+pub type SharedMemory<'a> = Rc<RefCell<MemoryInterface + 'a>>;
pub trait Mmu {
fn translate(&self, address: isa::Address) -> isa::Address;