NestedMetaItemKind -> NestedMetaItem

This commit is contained in:
Mateusz Mikuła 2019-03-18 11:59:09 +01:00 committed by Mateusz Mikuła
parent cf71caa71d
commit e63a685412
2 changed files with 5 additions and 5 deletions

View file

@ -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(_) => {