Fixes for latest nightly

This commit is contained in:
Jason Newcomb 2022-08-28 06:22:08 -04:00
parent 278b0920d8
commit 9790a3291b
2 changed files with 3 additions and 3 deletions

View file

@ -201,7 +201,7 @@ impl<'tcx> Visitor<'_> for PeekableVisitor<'_, 'tcx> {
return;
},
},
Node::Block(_) => {},
Node::Block(_) | Node::ExprField(_) => {},
_ => {
break;
},

View file

@ -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();