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); }