From cef764ff853859bad0f2255bc19d10ad28429aa7 Mon Sep 17 00:00:00 2001 From: Maximiliano Sandoval Date: Wed, 26 Jun 2024 15:06:02 +0200 Subject: [PATCH] chunk_store: do not explicitly write implied trait Fixes the clippy warning: warning: this bound is already specified as the supertrait of `std::iter::FusedIterator` --> pbs-datastore/src/chunk_store.rs:254:14 | 254 | impl Iterator, usize, bool)> | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#implied_bounds_in_impls = note: `#[warn(clippy::implied_bounds_in_impls)]` on by default help: try removing this bound | 254 - impl Iterator, usize, bool)> 255 - + std::iter::FusedIterator, 254 + impl std::iter::FusedIterator, usize, bool)>, Signed-off-by: Maximiliano Sandoval --- pbs-datastore/src/chunk_store.rs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/pbs-datastore/src/chunk_store.rs b/pbs-datastore/src/chunk_store.rs index 9f6289c9..0217be84 100644 --- a/pbs-datastore/src/chunk_store.rs +++ b/pbs-datastore/src/chunk_store.rs @@ -251,8 +251,9 @@ impl ChunkStore { pub fn get_chunk_iterator( &self, ) -> Result< - impl Iterator, usize, bool)> - + std::iter::FusedIterator, + impl std::iter::FusedIterator< + Item = (Result, usize, bool), + >, Error, > { // unwrap: only `None` in unit tests