diff options
author | David Li <li.davidm96@gmail.com> | 2016-01-06 10:51:37 -0700 |
---|---|---|
committer | David Li <li.davidm96@gmail.com> | 2016-01-06 10:51:37 -0700 |
commit | b7111860f29bb123365794a8cdabbbf473463204 (patch) | |
tree | d6533127bcacd74b2fbe90874bede83f90fcb33f /src/memory.rs | |
parent | e6d2693a836788894373af1b35ed678b3561f6ac (diff) |
Get rid of Box in memory refs
Diffstat (limited to 'src/memory.rs')
-rw-r--r-- | src/memory.rs | 2 |
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; |