Skip to content

Commit b03ebf3

Browse files
committed
Auto merge of #4294 - Turbo87:clone-trait, r=Turbo87
models/version: Remove unnecessary `Clone` trait bound There is no need for this trait bound since we only use the iterator once.
2 parents ee38010 + b45015f commit b03ebf3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/models/version.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ impl TopVersions {
5959
/// highest version (in semver order) for a collection of date/version pairs.
6060
pub fn from_date_version_pairs<T>(pairs: T) -> Self
6161
where
62-
T: Clone + IntoIterator<Item = (NaiveDateTime, String)>,
62+
T: IntoIterator<Item = (NaiveDateTime, String)>,
6363
{
6464
// filter out versions that we can't parse
6565
let pairs: Vec<(NaiveDateTime, semver::Version)> = pairs

0 commit comments

Comments
 (0)