From 9ea9461935492bc8ca9253b9a81479c4306d2f53 Mon Sep 17 00:00:00 2001 From: pjht Date: Sat, 28 Jan 2023 08:18:37 -0600 Subject: [PATCH] Change BusErrorCause's Display impl to use Self --- src/m68k.rs | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/m68k.rs b/src/m68k.rs index 5a980fe..2a9b1a3 100644 --- a/src/m68k.rs +++ b/src/m68k.rs @@ -36,11 +36,11 @@ pub enum BusErrorCause { impl Display for BusErrorCause { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match self { - BusErrorCause::ReadingByte => f.write_str("reading byte from"), - BusErrorCause::ReadingWord => f.write_str("reading word from"), - BusErrorCause::WritingByte => f.write_str("writing byte to"), - BusErrorCause::WritingWord => f.write_str("writing word to"), - BusErrorCause::ReadingInstruction => f.write_str("reading instruction at"), + Self::ReadingByte => f.write_str("reading byte from"), + Self::ReadingWord => f.write_str("reading word from"), + Self::WritingByte => f.write_str("writing byte to"), + Self::WritingWord => f.write_str("writing word to"), + Self::ReadingInstruction => f.write_str("reading instruction at"), } } }