Bump rustyline (#1644)

* Bump rustyline

* Fix new clippy warnings

* Add pipeline command
This commit is contained in:
Jonathan Turner
2020-04-24 08:00:49 +12:00
committed by GitHub
parent 9e8434326d
commit d7bd77829f
10 changed files with 52 additions and 60 deletions

View File

@ -204,12 +204,9 @@ impl Shell for HelpShell {
let mut possible_completion = vec![];
let commands = self.commands();
for cmd in commands {
match cmd {
Value { value, .. } => {
for desc in value.data_descriptors() {
possible_completion.push(desc);
}
}
let Value { value, .. } = cmd;
for desc in value.data_descriptors() {
possible_completion.push(desc);
}
}

View File

@ -238,12 +238,9 @@ impl Shell for ValueShell {
let mut possible_completion = vec![];
let members = self.members();
for member in members {
match member {
Value { value, .. } => {
for desc in value.data_descriptors() {
possible_completion.push(desc);
}
}
let Value { value, .. } = member;
for desc in value.data_descriptors() {
possible_completion.push(desc);
}
}