mirror of
https://git.aramjonghu.dev/AramJonghu/rustlings.git
synced 2026-10-30 23:16:29 +01:00
Use push instead of extend_from_slice on chars
This commit is contained in:
@@ -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");
|
||||
|
||||
Reference in New Issue
Block a user