mirror of
https://git.proxmox.com/git/proxmox-backup
synced 2025-08-07 11:27:52 +00:00
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<Item = (Result<proxmox_sys::fs::ReadDirEntry, Error>, 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<Item = (Result<proxmox_sys::fs::ReadDirEntry, Error>, usize, bool)> 255 - + std::iter::FusedIterator, 254 + impl std::iter::FusedIterator<Item = (Result<proxmox_sys::fs::ReadDirEntry, Error>, usize, bool)>, Signed-off-by: Maximiliano Sandoval <m.sandoval@proxmox.com>
This commit is contained in:
parent
f619f3e0e7
commit
cef764ff85
@ -251,8 +251,9 @@ impl ChunkStore {
|
|||||||
pub fn get_chunk_iterator(
|
pub fn get_chunk_iterator(
|
||||||
&self,
|
&self,
|
||||||
) -> Result<
|
) -> Result<
|
||||||
impl Iterator<Item = (Result<proxmox_sys::fs::ReadDirEntry, Error>, usize, bool)>
|
impl std::iter::FusedIterator<
|
||||||
+ std::iter::FusedIterator,
|
Item = (Result<proxmox_sys::fs::ReadDirEntry, Error>, usize, bool),
|
||||||
|
>,
|
||||||
Error,
|
Error,
|
||||||
> {
|
> {
|
||||||
// unwrap: only `None` in unit tests
|
// unwrap: only `None` in unit tests
|
||||||
|
Loading…
Reference in New Issue
Block a user