Skip to content

Commit bacb3e3

Browse files
committed
clippy lints
1 parent b0b75de commit bacb3e3

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/tools/clippy/clippy_lints/src/lifetimes.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -599,15 +599,15 @@ fn has_where_lifetimes<'tcx>(cx: &LateContext<'tcx>, generics: &'tcx Generics<'_
599599
struct LifetimeChecker<'cx, 'tcx, F> {
600600
cx: &'cx LateContext<'tcx>,
601601
map: FxHashMap<Symbol, Span>,
602-
phantom: std::marker::PhantomData<F>,
602+
phantom: PhantomData<F>,
603603
}
604604

605605
impl<'cx, 'tcx, F> LifetimeChecker<'cx, 'tcx, F> {
606606
fn new(cx: &'cx LateContext<'tcx>, map: FxHashMap<Symbol, Span>) -> LifetimeChecker<'cx, 'tcx, F> {
607607
Self {
608608
cx,
609609
map,
610-
phantom: std::marker::PhantomData,
610+
phantom: PhantomData,
611611
}
612612
}
613613
}

src/tools/clippy/clippy_lints/src/zero_repeat_side_effects.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -68,9 +68,9 @@ fn inner_check(cx: &LateContext<'_>, expr: &'_ rustc_hir::Expr<'_>, inner_expr:
6868
// check if expr is a call or has a call inside it
6969
if for_each_expr(inner_expr, |x| {
7070
if let ExprKind::Call(_, _) | ExprKind::MethodCall(_, _, _, _) = x.kind {
71-
std::ops::ControlFlow::Break(())
71+
ControlFlow::Break(())
7272
} else {
73-
std::ops::ControlFlow::Continue(())
73+
ControlFlow::Continue(())
7474
}
7575
})
7676
.is_some()

0 commit comments

Comments
 (0)