Skip to content

Commit a56ccb6

Browse files
committed
Fix new Clippy lint
1 parent d9872f2 commit a56ccb6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/cargo_toml.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -74,13 +74,13 @@ pub fn updated_cargo_toml(
7474
let (bins_start_ind, bins_end_ind) = bins_start_end_ind(current_cargo_toml)?;
7575

7676
let mut updated_cargo_toml = Vec::with_capacity(BINS_BUFFER_CAPACITY);
77-
updated_cargo_toml.extend_from_slice(current_cargo_toml[..bins_start_ind].as_bytes());
77+
updated_cargo_toml.extend_from_slice(&current_cargo_toml.as_bytes()[..bins_start_ind]);
7878
append_bins(
7979
&mut updated_cargo_toml,
8080
exercise_infos,
8181
exercise_path_prefix,
8282
);
83-
updated_cargo_toml.extend_from_slice(current_cargo_toml[bins_end_ind..].as_bytes());
83+
updated_cargo_toml.extend_from_slice(&current_cargo_toml.as_bytes()[bins_end_ind..]);
8484

8585
Ok(updated_cargo_toml)
8686
}

0 commit comments

Comments
 (0)