Fix clippy lint and disable broken lint (#3865)

This commit is contained in:
JT
2021-07-30 08:11:47 +12:00
committed by GitHub
parent 9696e4d315
commit e602647d4d
28 changed files with 52 additions and 52 deletions

View File

@ -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!(),
}

View File

@ -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
}

View File

@ -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
}