summary refs log tree commit diff
path: root/x86_64/src/regs.rs
diff options
context:
space:
mode:
Diffstat (limited to 'x86_64/src/regs.rs')
-rw-r--r--x86_64/src/regs.rs20
1 files changed, 10 insertions, 10 deletions
diff --git a/x86_64/src/regs.rs b/x86_64/src/regs.rs
index 977e19f..3dd4754 100644
--- a/x86_64/src/regs.rs
+++ b/x86_64/src/regs.rs
@@ -44,16 +44,16 @@ pub type Result<T> = result::Result<T, Error>;
 impl error::Error for Error {
     fn description(&self) -> &str {
         match self {
-            &Error::MsrIoctlFailed(_) => "Setting up msrs failed",
-            &Error::FpuIoctlFailed(_) => "Failed to configure the FPU",
-            &Error::GetSRegsIoctlFailed(_) => "Failed to get sregs for this cpu",
-            &Error::SettingRegistersIoctl(_) => "Failed to set base registers for this cpu",
-            &Error::SetSRegsIoctlFailed(_) => "Failed to set sregs for this cpu",
-            &Error::WriteGDTFailure => "Writing the GDT to RAM failed",
-            &Error::WriteIDTFailure => "Writing the IDT to RAM failed",
-            &Error::WritePML4Address => "Writing PML4 to RAM failed",
-            &Error::WritePDPTEAddress => "Writing PDPTE to RAM failed",
-            &Error::WritePDEAddress => "Writing PDE to RAM failed",
+            Error::MsrIoctlFailed(_) => "Setting up msrs failed",
+            Error::FpuIoctlFailed(_) => "Failed to configure the FPU",
+            Error::GetSRegsIoctlFailed(_) => "Failed to get sregs for this cpu",
+            Error::SettingRegistersIoctl(_) => "Failed to set base registers for this cpu",
+            Error::SetSRegsIoctlFailed(_) => "Failed to set sregs for this cpu",
+            Error::WriteGDTFailure => "Writing the GDT to RAM failed",
+            Error::WriteIDTFailure => "Writing the IDT to RAM failed",
+            Error::WritePML4Address => "Writing PML4 to RAM failed",
+            Error::WritePDPTEAddress => "Writing PDPTE to RAM failed",
+            Error::WritePDEAddress => "Writing PDE to RAM failed",
         }
     }
 }