clippy fixes
This commit is contained in:
parent
fdaf393beb
commit
8aaeb4a4b5
|
@ -84,7 +84,7 @@ impl Command for External {
|
||||||
// Determine the PATH to be used and then use `which` to find it - though this has no
|
// Determine the PATH to be used and then use `which` to find it - though this has no
|
||||||
// effect if it's an absolute path already
|
// effect if it's an absolute path already
|
||||||
let paths = nu_engine::env::path_str(engine_state, stack, call.head)?;
|
let paths = nu_engine::env::path_str(engine_state, stack, call.head)?;
|
||||||
let Some(executable) = which(&expanded_name, &paths, &cwd) else {
|
let Some(executable) = which(expanded_name, &paths, &cwd) else {
|
||||||
return Err(command_not_found(
|
return Err(command_not_found(
|
||||||
&name.item,
|
&name.item,
|
||||||
call.head,
|
call.head,
|
||||||
|
@ -276,7 +276,7 @@ fn eval_argument(
|
||||||
spread: bool,
|
spread: bool,
|
||||||
) -> Result<Vec<String>, ShellError> {
|
) -> Result<Vec<String>, ShellError> {
|
||||||
let eval = get_eval_expression(engine_state);
|
let eval = get_eval_expression(engine_state);
|
||||||
match eval(engine_state, stack, &expr)? {
|
match eval(engine_state, stack, expr)? {
|
||||||
Value::List { vals, .. } => {
|
Value::List { vals, .. } => {
|
||||||
if spread {
|
if spread {
|
||||||
vals.into_iter().map(coerce_into_string).collect()
|
vals.into_iter().map(coerce_into_string).collect()
|
||||||
|
|
Loading…
Reference in New Issue
Block a user