From bc70305de9d5d2304b43fd0fd3ed7fa4e47edbb4 Mon Sep 17 00:00:00 2001 From: Cole Helbling Date: Thu, 22 Dec 2022 09:33:24 -0800 Subject: [PATCH] nix: rustfmt --- ofborg/src/nix.rs | 28 ++++++++++++++++++++++++---- 1 file changed, 24 insertions(+), 4 deletions(-) diff --git a/ofborg/src/nix.rs b/ofborg/src/nix.rs index 3c14e3c..e1db1cb 100644 --- a/ofborg/src/nix.rs +++ b/ofborg/src/nix.rs @@ -56,10 +56,23 @@ impl Operation { fn args(&self, command: &mut Command) { match *self { Operation::Build => { - command.args(&["--no-out-link", "--keep-going", "--option", "experimental-features", "no-url-literals"]); + command.args(&[ + "--no-out-link", + "--keep-going", + "--option", + "experimental-features", + "no-url-literals", + ]); } Operation::QueryPackagesJson => { - command.args(&["--query", "--available", "--json", "--option", "experimental-features", "no-url-literals"]); + command.args(&[ + "--query", + "--available", + "--json", + "--option", + "experimental-features", + "no-url-literals", + ]); } Operation::QueryPackagesOutputs => { command.args(&[ @@ -70,14 +83,21 @@ impl Operation { "--out-path", "--option", "experimental-features", - "no-url-literals" + "no-url-literals", ]); } Operation::NoOp { ref operation } => { operation.args(command); } Operation::Evaluate => { - command.args(&["--eval", "--strict", "--json", "--option", "experimental-features", "no-url-literals"]); + command.args(&[ + "--eval", + "--strict", + "--json", + "--option", + "experimental-features", + "no-url-literals", + ]); } Operation::Instantiate => { command.args(&["--option", "experimental-features", "no-url-literals"])