Use push instead of extend_from_slice on chars

This commit is contained in:
mo8it
2024-04-14 14:53:32 +02:00
parent 1c90575b9f
commit 3da860927d
3 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -244,7 +244,7 @@ impl AppState {
for exercise in &self.exercises {
if exercise.done {
self.file_buf.extend_from_slice(exercise.name.as_bytes());
self.file_buf.extend_from_slice(b"\n");
self.file_buf.push(b'\n');
}
}