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 @@ fn visit_expr(&mut self, ex: &'_ Expr<'_>) {
return; return;
}, },
}, },
Node::Block(_) => {}, Node::Block(_) | Node::ExprField(_) => {},
_ => { _ => {
break; break;
}, },

View File

@ -593,8 +593,8 @@ fn extract_clippy_version_value(cx: &LateContext<'_>, item: &'_ Item<'_>) -> Opt
attrs.iter().find_map(|attr| { attrs.iter().find_map(|attr| {
if_chain! { if_chain! {
// Identify attribute // Identify attribute
if let ast::AttrKind::Normal(ref attr_kind, _) = &attr.kind; if let ast::AttrKind::Normal(ref attr_kind) = &attr.kind;
if let [tool_name, attr_name] = &attr_kind.path.segments[..]; if let [tool_name, attr_name] = &attr_kind.item.path.segments[..];
if tool_name.ident.name == sym::clippy; if tool_name.ident.name == sym::clippy;
if attr_name.ident.name == sym::version; if attr_name.ident.name == sym::version;
if let Some(version) = attr.value_str(); if let Some(version) = attr.value_str();