Skip to content

Commit 9790a32

Browse files
committed
Fixes for latest nightly
1 parent 278b092 commit 9790a32

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

clippy_lints/src/unused_peekable.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -201,7 +201,7 @@ impl<'tcx> Visitor<'_> for PeekableVisitor<'_, 'tcx> {
201201
return;
202202
},
203203
},
204-
Node::Block(_) => {},
204+
Node::Block(_) | Node::ExprField(_) => {},
205205
_ => {
206206
break;
207207
},

clippy_lints/src/utils/internal_lints.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -593,8 +593,8 @@ fn extract_clippy_version_value(cx: &LateContext<'_>, item: &'_ Item<'_>) -> Opt
593593
attrs.iter().find_map(|attr| {
594594
if_chain! {
595595
// Identify attribute
596-
if let ast::AttrKind::Normal(ref attr_kind, _) = &attr.kind;
597-
if let [tool_name, attr_name] = &attr_kind.path.segments[..];
596+
if let ast::AttrKind::Normal(ref attr_kind) = &attr.kind;
597+
if let [tool_name, attr_name] = &attr_kind.item.path.segments[..];
598598
if tool_name.ident.name == sym::clippy;
599599
if attr_name.ident.name == sym::version;
600600
if let Some(version) = attr.value_str();

0 commit comments

Comments
 (0)