Address clippy::redundant_slicing
warnings.
This commit is contained in:
parent
a839093b51
commit
ee7f888940
@ -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 \
|
||||
|
@ -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.
|
||||
|
Loading…
x
Reference in New Issue
Block a user