Skip to content

Commit

Permalink
Fix clippy::iter_cloned_collect
Browse files Browse the repository at this point in the history
  • Loading branch information
alanhdu committed Jun 4, 2019
1 parent 9b54b06 commit 02b6f87
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions crates/ra_hir/src/nameres.rs
Original file line number Diff line number Diff line change
Expand Up @@ -422,10 +422,8 @@ impl CrateDefMap {
curr_per_ns = match curr {
ModuleDef::Module(module) => {
if module.krate != self.krate {
let path = Path {
segments: path.segments[i..].iter().cloned().collect(),
kind: PathKind::Self_,
};
let path =
Path { segments: path.segments[i..].to_vec(), kind: PathKind::Self_ };
log::debug!("resolving {:?} in other crate", path);
let defp_map = db.crate_def_map(module.krate);
let (def, s) =
Expand Down

0 comments on commit 02b6f87

Please sign in to comment.