We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bdec8c2 commit c3997d6Copy full SHA for c3997d6
src/cargo/util/hex.rs
@@ -31,7 +31,7 @@ pub fn hash_u64_file(mut file: &File) -> u64 {
31
if n == 0 {
32
break;
33
}
34
- hasher.write(&buf);
+ hasher.write(&buf[..n]);
35
36
hasher.finish()
37
0 commit comments