Skip to content

Commit ce13ff8

Browse files
Merge pull request #15 from nikic/binutils-2.40
Add binutils-2.40
2 parents a6ac9ad + 9cd900c commit ce13ff8

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

files/rustc/gnu.toml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
[[files]]
2+
name = "rustc/binutils-2.40.tar.bz2"
3+
source = "https://sourceware.org/pub/binutils/releases/binutils-2.40.tar.bz2"
4+
sha256 = "f8298eb153a4b37d112e945aa5cb2850040bcf26a3ea65b5a715c83afe05e48a"
5+
license = "GNU General Public License"
6+
17
[[files]]
28
name = "rustc/binutils-2.44.tar.xz"
39
source = "https://sourceware.org/pub/binutils/releases/binutils-2.44.tar.xz"

src/utils.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ pub fn to_hex(sha: &Sha256) -> String {
55
let bytes = sha.as_slice();
66
let mut result = String::new();
77
for byte in bytes {
8-
result.push_str(&format!("{byte:0<2x}"));
8+
result.push_str(&format!("{byte:0>2x}"));
99
}
1010
result
1111
}

0 commit comments

Comments
 (0)