Skip to content

Commit 72d9fe8

Browse files
committed
less &
1 parent f19087d commit 72d9fe8

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/librustc_lint/builtin.rs

+3-3
Original file line numberDiff line numberDiff line change
@@ -1914,13 +1914,13 @@ impl<'a, 'tcx> LateLintPass<'a, 'tcx> for InvalidValue {
19141914
if let hir::ExprKind::Path(ref qpath) = path_expr.node {
19151915
let def_id = cx.tables.qpath_res(qpath, path_expr.hir_id).opt_def_id()?;
19161916

1917-
if cx.match_def_path(def_id, &ZEROED_PATH) {
1917+
if cx.match_def_path(def_id, ZEROED_PATH) {
19181918
return Some(InitKind::Zeroed);
19191919
}
1920-
if cx.match_def_path(def_id, &UININIT_PATH) {
1920+
if cx.match_def_path(def_id, UININIT_PATH) {
19211921
return Some(InitKind::Uninit);
19221922
}
1923-
if cx.match_def_path(def_id, &TRANSMUTE_PATH) {
1923+
if cx.match_def_path(def_id, TRANSMUTE_PATH) {
19241924
if is_zero(&args[0]) {
19251925
return Some(InitKind::Zeroed);
19261926
}

0 commit comments

Comments
 (0)