mirror of
https://github.com/NixOS/nix.git
synced 2025-12-06 00:51:00 +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
|
|
@ -338,7 +338,7 @@ Hash hashFile(HashAlgorithm ha, const Path & path)
|
|||
{
|
||||
HashSink sink(ha);
|
||||
readFile(path, sink);
|
||||
return sink.finish().first;
|
||||
return sink.finish().hash;
|
||||
}
|
||||
|
||||
HashSink::HashSink(HashAlgorithm ha)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue