It-expansion fixes (#1757)

* It-expansion fixes

* fix clippy
This commit is contained in:
Jonathan Turner
2020-05-12 15:58:16 +12:00
committed by GitHub
parent 8b9a8daa1d
commit c3535b5c67
5 changed files with 49 additions and 6 deletions

View File

@ -92,6 +92,14 @@ impl ClassifiedCommand {
}
}
if let Some(named) = &command.args.named {
for arg in named.iter() {
if let NamedValue::Value(_, value) = arg.1 {
result = result || value.has_shallow_it_usage();
}
}
}
result
}
ClassifiedCommand::Expr(expr) => expr.has_shallow_it_usage(),