fix clippy lint manual_repeat_n
This commit is contained in:
parent
12058e867f
commit
a041f3b2a1
2 changed files with 1 additions and 3 deletions
|
|
@ -36,8 +36,6 @@
|
|||
clippy::needless_question_mark,
|
||||
clippy::needless_lifetimes,
|
||||
clippy::too_long_first_doc_paragraph,
|
||||
// Temporarily disabled as fixing it would cause conflicts
|
||||
clippy::manual_repeat_n,
|
||||
// We don't use translatable diagnostics
|
||||
rustc::diagnostic_outside_of_impl,
|
||||
// We are not implementing queries here so it's fine
|
||||
|
|
|
|||
|
|
@ -335,7 +335,7 @@ pub trait EvalContextExt<'tcx>: crate::MiriInterpCxExt<'tcx> {
|
|||
// Initialize with `0`.
|
||||
this.write_bytes_ptr(
|
||||
system_info.ptr(),
|
||||
iter::repeat(0u8).take(system_info.layout.size.bytes_usize()),
|
||||
iter::repeat_n(0u8, system_info.layout.size.bytes_usize()),
|
||||
)?;
|
||||
// Set selected fields.
|
||||
this.write_int_fields_named(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue