NestedMetaItemKind -> NestedMetaItem
This commit is contained in:
parent
cf71caa71d
commit
e63a685412
2 changed files with 5 additions and 5 deletions
|
|
@ -12,9 +12,9 @@ use toml;
|
|||
|
||||
/// Gets the configuration file from arguments.
|
||||
pub fn file_from_args(
|
||||
args: &[source_map::Spanned<ast::NestedMetaItemKind>],
|
||||
args: &[ast::NestedMetaItem],
|
||||
) -> Result<Option<path::PathBuf>, (&'static str, source_map::Span)> {
|
||||
for arg in args.iter().filter_map(syntax::source_map::Spanned::meta_item) {
|
||||
for arg in args.iter().filter_map(syntax::ast::NestedMetaItem::meta_item) {
|
||||
if arg.name() == "conf_file" {
|
||||
return match arg.node {
|
||||
ast::MetaItemKind::Word | ast::MetaItemKind::List(_) => {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue