Skip to content

Commit

Permalink
Remove clippy allow (#1655)
Browse files Browse the repository at this point in the history
Co-authored-by: Pedro Fontana <[email protected]>
  • Loading branch information
fmoletta and pefontana authored Apr 16, 2024
1 parent 95d2c88 commit 8c24ca5
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions vm/src/vm/runners/cairo_pie.rs
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,6 @@ mod serde_impl {
seq_serializer.end()
}

#[allow(clippy::format_collect)]
pub fn serialize_memory<S>(
values: &[((usize, usize), MaybeRelocatable)],
serializer: S,
Expand Down Expand Up @@ -226,12 +225,11 @@ mod serde_impl {
};
}

serializer.serialize_str(
res.iter()
.map(|b| format!("{:02x}", b))
.collect::<String>()
.as_str(),
)
let string = res
.iter()
.fold(String::new(), |string, b| string + &format!("{:02x}", b));

serializer.serialize_str(&string)
}

impl CairoPieMemory {
Expand Down

0 comments on commit 8c24ca5

Please sign in to comment.