[brw] Remove clone and satisfy the borrow checker

This commit is contained in:
2024-02-18 19:45:34 +05:30
parent ba1c1a1412
commit f6eca76b0c
9 changed files with 87 additions and 76 deletions

View File

@@ -1,6 +1,6 @@
use std::fmt::Debug;
#[derive(Debug)]
#[derive(Debug, Copy, Clone)]
pub enum DeviceType {
RAM,
MMU,
@@ -11,7 +11,7 @@ pub enum DeviceType {
GRAPHICS,
}
#[derive(Debug)]
#[derive(Debug, Clone)]
pub enum EmulatorError {
AllocationFailure(DeviceType, &'static str),
UnreachableMemory(DeviceType, u32),