Skip to content

Commit

Permalink
Introduce TypeVisitor::BreakTy
Browse files Browse the repository at this point in the history
  • Loading branch information
LeSeulArtichaut committed Nov 14, 2020
1 parent 3a648ff commit cbb6b1c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion clippy_lints/src/redundant_clone.rs
Expand Up @@ -563,7 +563,7 @@ impl<'a, 'tcx> mir::visit::Visitor<'tcx> for PossibleBorrowerVisitor<'a, 'tcx> {
struct ContainsRegion;

impl TypeVisitor<'_> for ContainsRegion {
fn visit_region(&mut self, _: ty::Region<'_>) -> ControlFlow<()> {
fn visit_region(&mut self, _: ty::Region<'_>) -> ControlFlow<Self::BreakTy> {
ControlFlow::BREAK
}
}
Expand Down

0 comments on commit cbb6b1c

Please sign in to comment.