Skip to content

Commit

Permalink
Merge #802
Browse files Browse the repository at this point in the history
802: fix obsolete comment r=matklad a=matklad



Co-authored-by: Aleksey Kladov <aleksey.kladov@gmail.com>
  • Loading branch information
bors[bot] and matklad committed Feb 12, 2019
2 parents db43080 + 6052477 commit 3714800
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions crates/ra_hir/src/ty/method_resolution.rs
Expand Up @@ -136,8 +136,8 @@ impl Ty {
})
}

// This would be nicer if it just returned an iterator, but that's really
// complicated with all the cancelable operations
// This would be nicer if it just returned an iterator, but that runs into
// lifetime problems, because we need to borrow temp `CrateImplBlocks`.
pub fn iterate_methods<T>(
self,
db: &impl HirDatabase,
Expand All @@ -163,7 +163,7 @@ impl Ty {
for item in impl_block.items() {
match item {
ImplItem::Method(f) => {
if let Some(result) = callback(f.clone()) {
if let Some(result) = callback(*f) {
return Some(result);
}
}
Expand Down

0 comments on commit 3714800

Please sign in to comment.