Use write macros instead of write_fmt

This commit is contained in:
mo8it
2024-04-25 02:03:26 +02:00
parent 67fa017742
commit f92d45fa68
4 changed files with 28 additions and 25 deletions
+1 -2
View File
@@ -231,8 +231,7 @@ impl<'a> UiState<'a> {
.context("Invalid selection index")?;
let exercise_path = self.app_state.reset_exercise_by_ind(ind)?;
self.message
.write_fmt(format_args!("The exercise {exercise_path} has been reset"))?;
write!(self.message, "The exercise {exercise_path} has been reset")?;
Ok(self.with_updated_rows())
}