Simplify known_versions return types
Thanks to clippy for the lint!
This commit is contained in:
parent
157b36d305
commit
8d9e96ed76
@ -56,7 +56,7 @@ impl Response {
|
||||
/// The versions returned will be sorted from oldest to latest. Use [`.find()`][Iterator::find]
|
||||
/// or [`.rfind()`][DoubleEndedIterator::rfind] to look for a minimum or maximum version to use
|
||||
/// given some constraint.
|
||||
pub fn known_versions(&self) -> impl Iterator<Item = MatrixVersion> + DoubleEndedIterator {
|
||||
pub fn known_versions(&self) -> impl DoubleEndedIterator<Item = MatrixVersion> {
|
||||
self.versions
|
||||
.iter()
|
||||
// Parse, discard unknown versions
|
||||
|
@ -58,7 +58,7 @@ impl Response {
|
||||
/// The versions returned will be sorted from oldest to latest. Use [`.find()`][Iterator::find]
|
||||
/// or [`.rfind()`][DoubleEndedIterator::rfind] to look for a minimum or maximum version to use
|
||||
/// given some constraint.
|
||||
pub fn known_versions(&self) -> impl Iterator<Item = MatrixVersion> + DoubleEndedIterator {
|
||||
pub fn known_versions(&self) -> impl DoubleEndedIterator<Item = MatrixVersion> {
|
||||
self.versions
|
||||
.iter()
|
||||
// Parse, discard unknown versions
|
||||
|
Loading…
x
Reference in New Issue
Block a user