We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d9872f2 commit a56ccb6Copy full SHA for a56ccb6
src/cargo_toml.rs
@@ -74,13 +74,13 @@ pub fn updated_cargo_toml(
74
let (bins_start_ind, bins_end_ind) = bins_start_end_ind(current_cargo_toml)?;
75
76
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());
+ updated_cargo_toml.extend_from_slice(¤t_cargo_toml.as_bytes()[..bins_start_ind]);
78
append_bins(
79
&mut updated_cargo_toml,
80
exercise_infos,
81
exercise_path_prefix,
82
);
83
- 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..]);
84
85
Ok(updated_cargo_toml)
86
}
0 commit comments