diff options
| author | mo8it <mo8it@proton.me> | 2024-04-14 14:53:32 +0200 |
|---|---|---|
| committer | mo8it <mo8it@proton.me> | 2024-04-14 14:53:32 +0200 |
| commit | 3da860927d131eacc288764672ed8799a6a8cfca (patch) | |
| tree | 533f65b535cce0ad60df24cf19b6671844ea69a1 /src/init.rs | |
| parent | 1c90575b9fe0f0fb32006e000aefff10d8a4a39c (diff) | |
Use push instead of extend_from_slice on chars
Diffstat (limited to 'src/init.rs')
| -rw-r--r-- | src/init.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/init.rs b/src/init.rs index 4ee503a..459519d 100644 --- a/src/init.rs +++ b/src/init.rs @@ -17,7 +17,7 @@ fn create_cargo_toml(exercise_infos: &[ExerciseInfo]) -> io::Result<()> { cargo_toml.extend_from_slice(b"\", path = \"exercises/"); if let Some(dir) = &exercise_info.dir { cargo_toml.extend_from_slice(dir.as_bytes()); - cargo_toml.extend_from_slice(b"/"); + cargo_toml.push(b'/'); } cargo_toml.extend_from_slice(exercise_info.name.as_bytes()); cargo_toml.extend_from_slice(b".rs\" },\n"); |
