mirror of
https://github.com/NixOS/nix.git
synced 2025-11-09 20:16:03 +01:00
libutil: Make HashResult a proper struct
This resolves an existing TODO and makes the code slightly more readable.
This commit is contained in:
parent
241420a788
commit
143bd60136
18 changed files with 56 additions and 50 deletions
|
|
@ -329,7 +329,7 @@ TreeEntry dumpHash(HashAlgorithm ha, const SourcePath & path, PathFilter & filte
|
|||
hook = [&](const SourcePath & path) -> TreeEntry {
|
||||
auto hashSink = HashSink(ha);
|
||||
auto mode = dump(path, hashSink, hook, filter);
|
||||
auto hash = hashSink.finish().first;
|
||||
auto hash = hashSink.finish().hash;
|
||||
return {
|
||||
.mode = mode,
|
||||
.hash = hash,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue