Address clippy::redundant_slicing warnings.

This commit is contained in:
Brian Smith 2021-05-11 14:00:24 -07:00
parent a839093b51
commit ee7f888940
2 changed files with 1 additions and 5 deletions

View File

@ -34,8 +34,6 @@ cargo clippy \
--allow clippy::needless_range_loop \
--allow clippy::new_without_default \
--allow clippy::neg_cmp_op_on_partial_ord \
--allow clippy::range_plus_one \
--allow clippy::redundant_slicing \
--allow clippy::too_many_arguments \
--allow clippy::trivially_copy_pass_by_ref \
--allow clippy::type_complexity \

View File

@ -218,9 +218,7 @@ pub fn parse_big_endian_and_pad_consttime(
return Err(error::Unspecified);
}
for r in &mut result[..] {
*r = 0;
}
result.fill(0);
// XXX: Questionable as far as constant-timedness is concerned.
// TODO: Improve this.