Fixes for latest nightly
This commit is contained in:
parent
278b0920d8
commit
9790a3291b
@ -201,7 +201,7 @@ fn visit_expr(&mut self, ex: &'_ Expr<'_>) {
|
|||||||
return;
|
return;
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
Node::Block(_) => {},
|
Node::Block(_) | Node::ExprField(_) => {},
|
||||||
_ => {
|
_ => {
|
||||||
break;
|
break;
|
||||||
},
|
},
|
||||||
|
@ -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();
|
||||||
|
Loading…
Reference in New Issue
Block a user