Skip to content

Commit

Permalink
lower MSRV to 1.56.1
Browse files Browse the repository at this point in the history
  • Loading branch information
Qyriad committed May 25, 2022
1 parent 74a985c commit 38f89e5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/error.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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")?,
Expand Down
2 changes: 1 addition & 1 deletion src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 38f89e5

Please sign in to comment.