diff --git a/src/components/editor/mod.rs b/src/components/editor/mod.rs index 7766264..2524e4c 100644 --- a/src/components/editor/mod.rs +++ b/src/components/editor/mod.rs @@ -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") - )) + ) } }, );