fix: panic! expecting &str in editor/mod.rs

In Rust 2021, panic! automatically formats the message.
Because of this, the panic! macro complained about the argument not being &str
as format! returns a String instead.
fix/panic_format
Nefo Fortressia 2021-12-28 08:37:09 +07:00
parent c6da158bb6
commit e077e690f2
Signed by: fortressia
GPG Key ID: 6D7972CC76174995
1 changed files with 2 additions and 2 deletions

View File

@ -120,10 +120,10 @@ impl EchidnaCoreEditor {
|_, _| {},
|result| {
if result.is_err() {
panic!(format!(
panic!(
"Found an error while saving the file:\n{}",
result.err().expect("No error")
))
)
}
},
);