Skip to content

Commit ce534ec

Browse files
committed
Finished fixing the errors with perfect match.
1 parent a6f3064 commit ce534ec

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/krate.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -717,7 +717,7 @@ pub fn index(req: &mut Request) -> CargoResult<Response> {
717717

718718
let data = query.load::<(Crate, i64, bool)>(&*conn)?;
719719
let total = data.get(0).map(|&(_, t, _)| t).unwrap_or(0);
720-
let crates = data.into_iter().map(|(c, _, _)| c).collect::<Vec<_>>();
720+
let crates = data.iter().map(|&(ref c, _, _)| c.clone()).collect::<Vec<_>>();
721721
let perfect_matches = data.into_iter().map(|(_, _, b)| b).collect::<Vec<_>>();
722722

723723
let versions = Version::belonging_to(&crates)

0 commit comments

Comments
 (0)