mirror of
https://github.com/nushell/nushell.git
synced 2025-06-30 14:40:06 +02:00
Bump rustyline (#1644)
* Bump rustyline * Fix new clippy warnings * Add pipeline command
This commit is contained in:
@ -21,17 +21,16 @@ impl Fetch {
|
||||
}
|
||||
|
||||
pub fn setup(&mut self, call_info: CallInfo) -> ReturnValue {
|
||||
self.path = Some(
|
||||
match call_info.args.nth(0).ok_or_else(|| {
|
||||
self.path = Some({
|
||||
let file = call_info.args.nth(0).ok_or_else(|| {
|
||||
ShellError::labeled_error(
|
||||
"No file or directory specified",
|
||||
"for command",
|
||||
&call_info.name_tag,
|
||||
)
|
||||
})? {
|
||||
file => file.clone(),
|
||||
},
|
||||
);
|
||||
})?;
|
||||
file.clone()
|
||||
});
|
||||
|
||||
self.has_raw = call_info.args.has("raw");
|
||||
|
||||
|
Reference in New Issue
Block a user