Use symbols in lint tool list

This commit is contained in:
flip1995 2019-06-24 18:14:04 +02:00
parent 7de6f54728
commit 8e087cdd98
No known key found for this signature in database
GPG key ID: 693086869D506637
3 changed files with 8 additions and 6 deletions

View file

@ -60,7 +60,7 @@ pub fn is_known(attr: &Attribute) -> bool {
}
pub fn is_known_lint_tool(m_item: Ident) -> bool {
["clippy", "rustc"].contains(&m_item.as_str().as_ref())
[sym::clippy, sym::rustc].contains(&m_item.name)
}
impl NestedMetaItem {