Rename NestedMetaItem::[Ll]iteral
as NestedMetaItem::[Ll]it
.
We already use a mix of `Literal` and `Lit`. The latter is better because it is shorter without causing any ambiguity.
This commit is contained in:
parent
1c65264f3c
commit
a60e337c88
19 changed files with 34 additions and 41 deletions
|
@ -194,7 +194,7 @@ pub fn parse_check_cfg(specs: Vec<String>) -> CheckCfg {
|
|||
|
||||
for val in values {
|
||||
if let Some(LitKind::Str(s, _)) =
|
||||
val.literal().map(|lit| &lit.kind)
|
||||
val.lit().map(|lit| &lit.kind)
|
||||
{
|
||||
ident_values.insert(s.to_string());
|
||||
} else {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue