Skip to content

Commit 1b55cc7

Browse files
Set the default BreakTy to !
1 parent cbb6b1c commit 1b55cc7

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

clippy_lints/src/redundant_clone.rs

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

565565
impl TypeVisitor<'_> for ContainsRegion {
566+
type BreakTy = ();
567+
566568
fn visit_region(&mut self, _: ty::Region<'_>) -> ControlFlow<Self::BreakTy> {
567569
ControlFlow::BREAK
568570
}

0 commit comments

Comments
 (0)