diff options
Diffstat (limited to 'src/buildtool/common/artifact_digest.hpp')
-rw-r--r-- | src/buildtool/common/artifact_digest.hpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/buildtool/common/artifact_digest.hpp b/src/buildtool/common/artifact_digest.hpp index 3bd59e07..5e88232a 100644 --- a/src/buildtool/common/artifact_digest.hpp +++ b/src/buildtool/common/artifact_digest.hpp @@ -19,6 +19,7 @@ #include <string> #include <utility> // std::move +#include "src/buildtool/crypto/hash_function.hpp" #include "src/buildtool/crypto/hash_info.hpp" #include "src/utils/cpp/hash_combine.hpp" @@ -50,6 +51,10 @@ class ArtifactDigest final { return hash_info_ == other.hash_info_; } + [[nodiscard]] auto GetHashType() const& noexcept -> HashFunction::Type { + return hash_info_.HashType(); + } + private: HashInfo hash_info_; std::size_t size_ = 0; |