Skip to content

Commit cbb6b1c

Browse files
Introduce TypeVisitor::BreakTy
1 parent 3a648ff commit cbb6b1c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

clippy_lints/src/redundant_clone.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -563,7 +563,7 @@ impl<'a, 'tcx> mir::visit::Visitor<'tcx> for PossibleBorrowerVisitor<'a, 'tcx> {
563563
struct ContainsRegion;
564564

565565
impl TypeVisitor<'_> for ContainsRegion {
566-
fn visit_region(&mut self, _: ty::Region<'_>) -> ControlFlow<()> {
566+
fn visit_region(&mut self, _: ty::Region<'_>) -> ControlFlow<Self::BreakTy> {
567567
ControlFlow::BREAK
568568
}
569569
}

0 commit comments

Comments
 (0)