mirror of
https://git.aramjonghu.dev/AramJonghu/rustlings.git
synced 2026-09-05 01:33:30 +02:00
Use push instead of extend_from_slice on chars
This commit is contained in:
+1
-1
@@ -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');
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user