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
parent
c6da158bb6
commit
e077e690f2
|
@ -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")
|
||||
))
|
||||
)
|
||||
}
|
||||
},
|
||||
);
|
||||
|
|
Loading…
Reference in New Issue