From e2858d0bbb13dae202e7da9ee7bbb81916349d1e Mon Sep 17 00:00:00 2001 From: Kitson Kelly Date: Sat, 28 Nov 2020 06:47:35 +1100 Subject: chore: clippy future cleanups (#8514) --- cli/ops/process.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'cli/ops/process.rs') 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)?; -- cgit v1.2.3