Skip to content

Commit 1240a92

Browse files
committed
refactor: clippy -> redundant filter_map().cloned().map() to just filter_map()
Signed-off-by: Rachel Powers <[email protected]>
1 parent 324437a commit 1240a92

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

mcmeta/src/storage/mojang.rs

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -211,14 +211,12 @@ impl UpstreamMetadataUpdater {
211211
.get(id)
212212
.expect("local version to exist locally");
213213
if remote_version.time > local_version.time {
214-
Some(id)
214+
Some((id.clone(), true))
215215
} else {
216216
None
217217
}
218218
})
219-
.cloned()
220-
.map(|id| (id, true))
221-
.collect();
219+
.collect::<Vec<_>>();
222220
diff.append(&mut out_of_date);
223221
diff
224222
} else {

0 commit comments

Comments
 (0)