summaryrefslogtreecommitdiff
path: root/cli/ops/process.rs
diff options
context:
space:
mode:
authorKitson Kelly <me@kitsonkelly.com>2020-11-28 06:47:35 +1100
committerGitHub <noreply@github.com>2020-11-28 06:47:35 +1100
commite2858d0bbb13dae202e7da9ee7bbb81916349d1e (patch)
treec47084e73a9d4c7a852546374069b1aa176c3265 /cli/ops/process.rs
parent40bf26b37d82c7a85c3d6a54947fc441eb5e6946 (diff)
chore: clippy future cleanups (#8514)
Diffstat (limited to 'cli/ops/process.rs')
-rw-r--r--cli/ops/process.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/cli/ops/process.rs b/cli/ops/process.rs
index 026c6833e..60a6d5095 100644
--- a/cli/ops/process.rs
+++ b/cli/ops/process.rs
@@ -88,21 +88,21 @@ fn op_run(
}
// TODO: make this work with other resources, eg. sockets
- if run_args.stdin != "" {
+ if !run_args.stdin.is_empty() {
c.stdin(subprocess_stdio_map(run_args.stdin.as_ref())?);
} else {
let file = clone_file(state, run_args.stdin_rid)?;
c.stdin(file);
}
- if run_args.stdout != "" {
+ if !run_args.stdout.is_empty() {
c.stdout(subprocess_stdio_map(run_args.stdout.as_ref())?);
} else {
let file = clone_file(state, run_args.stdout_rid)?;
c.stdout(file);
}
- if run_args.stderr != "" {
+ if !run_args.stderr.is_empty() {
c.stderr(subprocess_stdio_map(run_args.stderr.as_ref())?);
} else {
let file = clone_file(state, run_args.stderr_rid)?;