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
@@ -42,7 +42,7 @@ bin = [\n",
buf.extend_from_slice(b"\", path = \"../exercises/");
if let Some(dir) = &exercise_info.dir {
buf.extend_from_slice(dir.as_bytes());
buf.extend_from_slice(b"/");
buf.push(b'/');
}
buf.extend_from_slice(exercise_info.name.as_bytes());
buf.extend_from_slice(b".rs\" },\n");