-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Closed
Labels
C-bugCategory: Clippy is not doing the correct thingCategory: Clippy is not doing the correct thingE-mediumCall for participation: Medium difficulty level problem and requires some initial experience.Call for participation: Medium difficulty level problem and requires some initial experience.
Description
It tells me to impl Iterator. Iterator does not support my use-case.:
pub fn next<'b>(&'b mut self) -> Option<&'b mut S> { }
Rust iterators are not streaming, i.e. an item can live even after .next() has been called a second time. This is a streaming iterator. As such i think the name is perfectly fine.
Maybe check for life-times in the signature to avoid this false positive.
Metadata
Metadata
Assignees
Labels
C-bugCategory: Clippy is not doing the correct thingCategory: Clippy is not doing the correct thingE-mediumCall for participation: Medium difficulty level problem and requires some initial experience.Call for participation: Medium difficulty level problem and requires some initial experience.