Skip to content

Commit 11633c0

Browse files
committed
enclave_build: Fix clippy warning (clippy::needless_borrow)
warning: the borrowed expression implements the required traits --> enclave_build/src/lib.rs:221:19 | 221 | .args(&[ | ___________________^ 222 | | "build", 223 | | "-name", 224 | | &bootstrap_ramfs, ... | 227 | | ramfs_config_file.path().to_str().unwrap(), 228 | | ]) | |_____________^ | = note: `#[warn(clippy::needless_borrow)]` on by default warning: the borrowed expression implements the required traits --> enclave_build/src/lib.rs:241:19 | 241 | .args(&[ | ___________________^ 242 | | "build", 243 | | "-docker", 244 | | "-name", ... | 250 | | ramfs_with_rootfs_config_file.path().to_str().unwrap(), 251 | | ]) | |_____________^ | Signed-off-by: Andra Paraschiv <[email protected]>
1 parent 90be103 commit 11633c0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

enclave_build/src/lib.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -218,7 +218,7 @@ impl<'a> Docker2Eif<'a> {
218218
let customer_ramfs = format!("{}/customer-initrd.img", self.artifacts_prefix);
219219

220220
let output = Command::new(&self.linuxkit_path)
221-
.args(&[
221+
.args([
222222
"build",
223223
"-name",
224224
&bootstrap_ramfs,
@@ -238,7 +238,7 @@ impl<'a> Docker2Eif<'a> {
238238

239239
// Prefix the docker image filesystem, as expected by init
240240
let output = Command::new(&self.linuxkit_path)
241-
.args(&[
241+
.args([
242242
"build",
243243
"-docker",
244244
"-name",

0 commit comments

Comments
 (0)