mirror of
https://github.com/nushell/nushell
synced 2024-11-10 23:24:14 +00:00
Clippy
This commit is contained in:
parent
1e1e12b027
commit
6f5f1fa43a
1 changed files with 7 additions and 9 deletions
|
@ -611,8 +611,7 @@ pub fn parse_hide(
|
|||
.iter()
|
||||
.map(|(name, _)| name.clone())
|
||||
.collect()
|
||||
} else {
|
||||
if import_pattern.members.is_empty() {
|
||||
} else if import_pattern.members.is_empty() {
|
||||
// The pattern head can be e.g. a function name, not just a module
|
||||
vec![import_pattern.head.clone()]
|
||||
} else {
|
||||
|
@ -620,7 +619,6 @@ pub fn parse_hide(
|
|||
garbage_statement(spans),
|
||||
Some(ParseError::ModuleNotFound(spans[1])),
|
||||
);
|
||||
}
|
||||
};
|
||||
|
||||
// This kind of inverts the import pattern matching found in parse_use()
|
||||
|
|
Loading…
Reference in a new issue