aboutsummaryrefslogtreecommitdiff
path: root/src/libstore/path.hh
diff options
context:
space:
mode:
Diffstat (limited to 'src/libstore/path.hh')
-rw-r--r--src/libstore/path.hh8
1 files changed, 3 insertions, 5 deletions
diff --git a/src/libstore/path.hh b/src/libstore/path.hh
index 4ca6747b3..09b4710c1 100644
--- a/src/libstore/path.hh
+++ b/src/libstore/path.hh
@@ -2,8 +2,9 @@
///@file
#include <string_view>
+#include <string>
-#include "types.hh"
+#include "types.hh" // IWYU pragma: keep
namespace nix {
@@ -89,10 +90,7 @@ const std::string drvExtension = ".drv";
namespace std {
template<> struct hash<nix::StorePath> {
- std::size_t operator()(const nix::StorePath & path) const noexcept
- {
- return * (std::size_t *) path.to_string().data();
- }
+ std::size_t operator()(const nix::StorePath & path) const noexcept;
};
}