From 3fc58a96387f55226ad78a0d8e765a0f041e8da0 Mon Sep 17 00:00:00 2001 From: John Ericson Date: Fri, 19 Jun 2020 00:24:47 +0000 Subject: Remove some `Base::` that crept in --- src/libstore/content-address.cc | 2 +- src/libstore/derivations.cc | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'src/libstore') diff --git a/src/libstore/content-address.cc b/src/libstore/content-address.cc index 5bf51cb97..7de5c0874 100644 --- a/src/libstore/content-address.cc +++ b/src/libstore/content-address.cc @@ -31,7 +31,7 @@ template overloaded(Ts...) -> overloaded; std::string renderContentAddress(ContentAddress ca) { return std::visit(overloaded { [](TextHash th) { - return "text:" + th.hash.to_string(Base::Base32, true); + return "text:" + th.hash.to_string(Base32, true); }, [](FileSystemHash fsh) { return makeFixedOutputCA(fsh.method, fsh.hash); diff --git a/src/libstore/derivations.cc b/src/libstore/derivations.cc index 1ba957c4a..6383e31f4 100644 --- a/src/libstore/derivations.cc +++ b/src/libstore/derivations.cc @@ -267,7 +267,7 @@ string Derivation::unparse(const Store & store, bool maskOutputs, s += ','; printUnquotedString(s, maskOutputs ? "" : store.printStorePath(i.second.path)); s += ','; printUnquotedString(s, i.second.hash ? i.second.hash->printMethodAlgo() : ""); s += ','; printUnquotedString(s, - i.second.hash ? i.second.hash->hash.to_string(Base::Base16, false) : ""); + i.second.hash ? i.second.hash->hash.to_string(Base16, false) : ""); s += ')'; } @@ -467,7 +467,7 @@ void writeDerivation(Sink & out, const Store & store, const BasicDerivation & dr out << i.first << store.printStorePath(i.second.path) << i.second.hash->printMethodAlgo() - << i.second.hash->hash.to_string(Base::Base16, false); + << i.second.hash->hash.to_string(Base16, false); writeStorePaths(store, out, drv.inputSrcs); out << drv.platform << drv.builder << drv.args; out << drv.env.size(); -- cgit v1.2.3