forked from extern/nushell
Fix clippy lint and disable broken lint (#3865)
This commit is contained in:
@ -266,7 +266,7 @@ impl<'a> From<&'a Expression> for Variable<'a> {
|
||||
"$true" => Self::True,
|
||||
"$false" => Self::False,
|
||||
"$nothing" => Self::Nothing,
|
||||
_ => Self::Other(&name),
|
||||
_ => Self::Other(name),
|
||||
},
|
||||
_ => unreachable!(),
|
||||
}
|
||||
|
@ -42,7 +42,7 @@ impl ValueShell {
|
||||
let mut value_system = ValueStructure::new();
|
||||
|
||||
if value_system.walk_decorate(&self.value).is_ok() {
|
||||
value_system.exists(&path).then(|| self)
|
||||
value_system.exists(path).then(|| self)
|
||||
} else {
|
||||
None
|
||||
}
|
||||
|
@ -104,7 +104,7 @@ impl WholeStreamCommand for Arc<Block> {
|
||||
let external_redirection = args.call_info.args.external_redirection;
|
||||
|
||||
let ctx = &args.context;
|
||||
let evaluated = call_info.evaluate(&ctx)?;
|
||||
let evaluated = call_info.evaluate(ctx)?;
|
||||
|
||||
let input = args.input;
|
||||
ctx.scope.enter_scope();
|
||||
@ -198,7 +198,7 @@ impl WholeStreamCommand for Arc<Block> {
|
||||
}
|
||||
}
|
||||
}
|
||||
let result = run_block(&block, &ctx, input, external_redirection);
|
||||
let result = run_block(&block, ctx, input, external_redirection);
|
||||
ctx.scope.exit_scope();
|
||||
result
|
||||
}
|
||||
|
Reference in New Issue
Block a user