diff options
Diffstat (limited to 'crates/ra_hir/src/ty/traits')
-rw-r--r-- | crates/ra_hir/src/ty/traits/chalk.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/crates/ra_hir/src/ty/traits/chalk.rs b/crates/ra_hir/src/ty/traits/chalk.rs index f229b1aef..d83706f86 100644 --- a/crates/ra_hir/src/ty/traits/chalk.rs +++ b/crates/ra_hir/src/ty/traits/chalk.rs | |||
@@ -406,8 +406,8 @@ where | |||
406 | 406 | ||
407 | let ty: Ty = from_chalk(self.db, parameters[0].assert_ty_ref().clone()); | 407 | let ty: Ty = from_chalk(self.db, parameters[0].assert_ty_ref().clone()); |
408 | if let Ty::Apply(ApplicationTy { ctor: TypeCtor::Closure { def, expr }, .. }) = ty { | 408 | if let Ty::Apply(ApplicationTy { ctor: TypeCtor::Closure { def, expr }, .. }) = ty { |
409 | for fn_trait in | 409 | for &fn_trait in |
410 | [super::FnTrait::FnOnce, super::FnTrait::FnMut, super::FnTrait::Fn].iter().copied() | 410 | [super::FnTrait::FnOnce, super::FnTrait::FnMut, super::FnTrait::Fn].iter() |
411 | { | 411 | { |
412 | if let Some(actual_trait) = get_fn_trait(self.db, self.krate, fn_trait) { | 412 | if let Some(actual_trait) = get_fn_trait(self.db, self.krate, fn_trait) { |
413 | if trait_ == actual_trait { | 413 | if trait_ == actual_trait { |