Use symbols in lint tool list
This commit is contained in:
parent
7de6f54728
commit
8e087cdd98
3 changed files with 8 additions and 6 deletions
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue