diff --git a/src/error.rs b/src/error.rs index 572439c..0dde22b 100644 --- a/src/error.rs +++ b/src/error.rs @@ -89,7 +89,7 @@ impl Display for ErrorKind use ErrorKind::*; match self { FirmwareFileIo(None) => write!(f, "failed to read firmware file")?, - FirmwareFileIo(Some(filename)) => write!(f, "failed to read firmware file {filename}")?, + FirmwareFileIo(Some(filename)) => write!(f, "failed to read firmware file {}", filename)?, TooManyDevices => write!(f, "current operation only supports one Black Magic Probe device but more than one device was found")?, DeviceNotFound => write!(f, "Black Magic Probe device not found (check connection?)")?, DeviceDisconnectDuringOperation => write!(f, "Black Magic Probe device found disconnected")?, diff --git a/src/main.rs b/src/main.rs index 5dad65a..a01e146 100644 --- a/src/main.rs +++ b/src/main.rs @@ -248,7 +248,7 @@ fn main() // Unfortunately, we have to do the printing ourselves, as we need to print a note // in the event that backtraces are supported but not enabled. if let Err(e) = res { - print!("Error: {e}"); + print!("Error: {}", e); #[cfg(feature = "backtrace")] { if e.backtrace.status() == BacktraceStatus::Disabled {