mirror of
https://github.com/nushell/nushell.git
synced 2025-08-09 06:25:43 +02:00
bump rust-toolchain to 1.64 (#7005)
* bump rust-toolchain to 1.64 * 1.64 clippy
This commit is contained in:
@ -100,7 +100,7 @@ impl Command for SubCommand {
|
||||
None => None,
|
||||
};
|
||||
let cell_paths: Vec<CellPath> = call.rest(engine_state, stack, 0)?;
|
||||
let cell_paths = (!cell_paths.is_empty()).then(|| cell_paths);
|
||||
let cell_paths = (!cell_paths.is_empty()).then_some(cell_paths);
|
||||
let mode = match cell_paths {
|
||||
None => ActionMode::Global,
|
||||
Some(_) => ActionMode::Local,
|
||||
|
Reference in New Issue
Block a user