diff options
author | jade <lix@jade.fyi> | 2024-03-31 15:38:48 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@lix> | 2024-03-31 15:38:48 +0000 |
commit | 73507a716761241ca38d35fb6a873c43967c8139 (patch) | |
tree | 3e05db96d19a6c0fd683357cfff269be8a0e42d5 /src/libstore/content-address.cc | |
parent | 6165f210742d74dc7d74b011cc6f782d59c2f407 (diff) | |
parent | 194a1b91af6d8848e4cc0dfbdcc153ee2dbed140 (diff) |
Merge changes Ib62d3d68,Ic3e7affe into main
* changes:
Make things that can throw not noexcept anymore
Fix various clang-tidy lints
Diffstat (limited to 'src/libstore/content-address.cc')
-rw-r--r-- | src/libstore/content-address.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libstore/content-address.cc b/src/libstore/content-address.cc index 77f23b0b3..811ddbed7 100644 --- a/src/libstore/content-address.cc +++ b/src/libstore/content-address.cc @@ -157,7 +157,7 @@ size_t StoreReferences::size() const return (self ? 1 : 0) + others.size(); } -ContentAddressWithReferences ContentAddressWithReferences::withoutRefs(const ContentAddress & ca) noexcept +ContentAddressWithReferences ContentAddressWithReferences::withoutRefs(const ContentAddress & ca) { return std::visit(overloaded { [&](const TextIngestionMethod &) -> ContentAddressWithReferences { @@ -177,7 +177,7 @@ ContentAddressWithReferences ContentAddressWithReferences::withoutRefs(const Con } std::optional<ContentAddressWithReferences> ContentAddressWithReferences::fromPartsOpt( - ContentAddressMethod method, Hash hash, StoreReferences refs) noexcept + ContentAddressMethod method, Hash hash, StoreReferences refs) { return std::visit(overloaded { [&](TextIngestionMethod _) -> std::optional<ContentAddressWithReferences> { |