diff options
| author | mo8it <mo8it@proton.me> | 2025-02-18 20:12:23 +0100 |
|---|---|---|
| committer | mo8it <mo8it@proton.me> | 2025-02-18 20:12:23 +0100 |
| commit | a56ccb6f4ff168803b44b975a257acb028a82cad (patch) | |
| tree | 040cb36b5172f029ba7fa28f33e898b58d1d57eb /src | |
| parent | d9872f2615a11ce94deb85c8f1c215d69abd7992 (diff) | |
Fix new Clippy lint
Diffstat (limited to 'src')
| -rw-r--r-- | src/cargo_toml.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/cargo_toml.rs b/src/cargo_toml.rs index 8d417ff..e966809 100644 --- a/src/cargo_toml.rs +++ b/src/cargo_toml.rs @@ -74,13 +74,13 @@ pub fn updated_cargo_toml( let (bins_start_ind, bins_end_ind) = bins_start_end_ind(current_cargo_toml)?; let mut updated_cargo_toml = Vec::with_capacity(BINS_BUFFER_CAPACITY); - updated_cargo_toml.extend_from_slice(current_cargo_toml[..bins_start_ind].as_bytes()); + updated_cargo_toml.extend_from_slice(¤t_cargo_toml.as_bytes()[..bins_start_ind]); append_bins( &mut updated_cargo_toml, exercise_infos, exercise_path_prefix, ); - updated_cargo_toml.extend_from_slice(current_cargo_toml[bins_end_ind..].as_bytes()); + updated_cargo_toml.extend_from_slice(¤t_cargo_toml.as_bytes()[bins_end_ind..]); Ok(updated_cargo_toml) } |
