mirror of
https://github.com/NixOS/nix.git
synced 2025-11-11 13:06:01 +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
|
|
@ -270,7 +270,7 @@ TEST_F(GitTest, both_roundrip)
|
|||
HashSink hashSink{hashAlgo};
|
||||
TeeSink s2{s, hashSink};
|
||||
auto mode = dump(path, s2, dumpHook, defaultPathFilter, mockXpSettings);
|
||||
auto hash = hashSink.finish().first;
|
||||
auto hash = hashSink.finish().hash;
|
||||
cas.insert_or_assign(hash, std::move(s.s));
|
||||
return TreeEntry{
|
||||
.mode = mode,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue