diff options
author | eldritch horrors <pennae@lix.systems> | 2024-03-24 00:44:57 +0100 |
---|---|---|
committer | eldritch horrors <pennae@lix.systems> | 2024-07-05 22:28:16 +0000 |
commit | f4f6d1d8e24a092422fcec601e21683179b735c9 (patch) | |
tree | e90edb17aea9aefc7449d1b3723ffb3b0a5bec59 /src/libutil/hash.cc | |
parent | 06220a71c1430c97bfcd8012b00530a987e40e97 (diff) |
libutil: convert readFileSource to a generator
Change-Id: I5f92b15fd367d46eb047d74ab6e317b4f51a46d3
Diffstat (limited to 'src/libutil/hash.cc')
-rw-r--r-- | src/libutil/hash.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libutil/hash.cc b/src/libutil/hash.cc index c0ad7f5fa..a762dc940 100644 --- a/src/libutil/hash.cc +++ b/src/libutil/hash.cc @@ -324,7 +324,7 @@ Hash hashString(HashType ht, std::string_view s) Hash hashFile(HashType ht, const Path & path) { HashSink sink(ht); - readFileSource(path)->drainInto(sink); + sink << readFileSource(path); return sink.finish().first; } |