about summary refs log tree commit diff
diff options
context:
space:
mode:
authoredef <edef@edef.eu>2024-10-19T13·33+0000
committeredef <edef@edef.eu>2024-10-19T13·49+0000
commit25671c284ff8cecd1dd7e3a2a674e1ae92b3211d (patch)
tree9f9b012ed14c14f2035b1257594b3e805357762c
parent5d235ff283be66bfa3c92b5c587a98072f967c18 (diff)
refactor(users/edef/weave): simplify DoubleEndedIterator bound r/8841
Thanks, Clippy!

Change-Id: I116b478124b72e070e94150ee850532752f64d60
Reviewed-on: https://cl.tvl.fyi/c/depot/+/12669
Reviewed-by: flokli <flokli@flokli.de>
Tested-by: BuildkiteCI
-rw-r--r--users/edef/weave/src/lib.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/users/edef/weave/src/lib.rs b/users/edef/weave/src/lib.rs
index bc2221bf5c9b..8d365a4c40f1 100644
--- a/users/edef/weave/src/lib.rs
+++ b/users/edef/weave/src/lib.rs
@@ -47,7 +47,7 @@ pub fn load_ph_array() -> Result<FixedBytes<20>> {
 /// Iterator over `&[[u8; N]]` from a dense [BinaryChunked].
 pub fn as_fixed_binary<const N: usize>(
     chunked: &BinaryChunked,
-) -> impl Iterator<Item = &[[u8; N]]> + DoubleEndedIterator {
+) -> impl DoubleEndedIterator<Item = &[[u8; N]]> {
     chunked.downcast_iter().map(|array| {
         let range = assert_fixed_dense::<N>(array);
         exact_chunks(&array.values()[range]).unwrap()