Skip to content

Commit 70ca052

Browse files
Merge #3441
3441: rustup rust-lang/rust#52591 r=flip1995 a=matthiaskrgr Co-authored-by: Matthias Krüger <[email protected]>
2 parents 64ff255 + 4aae764 commit 70ca052

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

clippy_lints/src/escape.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ impl<'a, 'tcx> LateLintPass<'a, 'tcx> for Pass {
8787

8888
let mut v = EscapeDelegate {
8989
cx,
90-
set: NodeSet(),
90+
set: NodeSet::default(),
9191
too_large_for_stack: self.too_large_for_stack,
9292
};
9393

clippy_lints/src/new_without_default.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ impl<'a, 'tcx> LateLintPass<'a, 'tcx> for NewWithoutDefault {
141141
if let Some(default_trait_id) = get_trait_def_id(cx, &paths::DEFAULT_TRAIT);
142142
then {
143143
if self.impling_types.is_none() {
144-
let mut impls = NodeSet();
144+
let mut impls = NodeSet::default();
145145
cx.tcx.for_each_impl(default_trait_id, |d| {
146146
if let Some(ty_def) = cx.tcx.type_of(d).ty_adt_def() {
147147
if let Some(node_id) = cx.tcx.hir.as_local_node_id(ty_def.did) {

0 commit comments

Comments
 (0)