Skip to content

Commit c3997d6

Browse files
committed
Fix erronous error with call to write
1 parent bdec8c2 commit c3997d6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/cargo/util/hex.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ pub fn hash_u64_file(mut file: &File) -> u64 {
3131
if n == 0 {
3232
break;
3333
}
34-
hasher.write(&buf);
34+
hasher.write(&buf[..n]);
3535
}
3636
hasher.finish()
3737
}

0 commit comments

Comments
 (0)