mirror of
https://github.com/rust-lang/rust-clippy
synced 2024-11-10 15:14:29 +00:00
Fixes for latest nightly
This commit is contained in:
parent
278b0920d8
commit
9790a3291b
2 changed files with 3 additions and 3 deletions
|
@ -201,7 +201,7 @@ impl<'tcx> Visitor<'_> for PeekableVisitor<'_, 'tcx> {
|
|||
return;
|
||||
},
|
||||
},
|
||||
Node::Block(_) => {},
|
||||
Node::Block(_) | Node::ExprField(_) => {},
|
||||
_ => {
|
||||
break;
|
||||
},
|
||||
|
|
|
@ -593,8 +593,8 @@ fn extract_clippy_version_value(cx: &LateContext<'_>, item: &'_ Item<'_>) -> Opt
|
|||
attrs.iter().find_map(|attr| {
|
||||
if_chain! {
|
||||
// Identify attribute
|
||||
if let ast::AttrKind::Normal(ref attr_kind, _) = &attr.kind;
|
||||
if let [tool_name, attr_name] = &attr_kind.path.segments[..];
|
||||
if let ast::AttrKind::Normal(ref attr_kind) = &attr.kind;
|
||||
if let [tool_name, attr_name] = &attr_kind.item.path.segments[..];
|
||||
if tool_name.ident.name == sym::clippy;
|
||||
if attr_name.ident.name == sym::version;
|
||||
if let Some(version) = attr.value_str();
|
||||
|
|
Loading…
Reference in a new issue