From 3be8c48f54c74dfb991e8909e1e2201b9b34399e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B6rg=20Thalheim?= Date: Sun, 10 Dec 2023 15:44:15 +0100 Subject: [PATCH] fix format --- src/drv.cc | 11 ++++++----- src/eval-args.cc | 2 +- 2 files changed, 7 insertions(+), 6 deletions(-) diff --git a/src/drv.cc b/src/drv.cc index 43578f8..2eca9b0 100644 --- a/src/drv.cc +++ b/src/drv.cc @@ -6,9 +6,8 @@ #include #include - static bool queryIsCached(nix::Store &store, - std::map &outputs) { + std::map &outputs) { uint64_t downloadSize, narSize; nix::StorePathSet willBuild, willSubstitute, unknown; @@ -23,7 +22,8 @@ static bool queryIsCached(nix::Store &store, } /* The fields of a derivation that are printed in json form */ -Drv::Drv(std::string &attrPath, nix::EvalState &state, nix::DrvInfo &drvInfo, MyArgs &args) { +Drv::Drv(std::string &attrPath, nix::EvalState &state, nix::DrvInfo &drvInfo, + MyArgs &args) { auto localStore = state.store.dynamic_pointer_cast(); @@ -58,8 +58,9 @@ Drv::Drv(std::string &attrPath, nix::EvalState &state, nix::DrvInfo &drvInfo, My meta = meta_; } if (args.checkCacheStatus) { - cacheStatus = queryIsCached(*localStore, outputs) ? Drv::CacheStatus::Cached - : Drv::CacheStatus::Uncached; + cacheStatus = queryIsCached(*localStore, outputs) + ? Drv::CacheStatus::Cached + : Drv::CacheStatus::Uncached; } else { cacheStatus = Drv::CacheStatus::Unknown; } diff --git a/src/eval-args.cc b/src/eval-args.cc index c0a8723..b25ecc7 100644 --- a/src/eval-args.cc +++ b/src/eval-args.cc @@ -88,6 +88,6 @@ MyArgs::MyArgs() : MixCommonArgs("nix-eval-jobs") { expectArg("expr", &releaseExpr); } -void MyArgs::parseArgs(char** argv, int argc) { +void MyArgs::parseArgs(char **argv, int argc) { parseCmdline(nix::argvToStrings(argc, argv), 0); }