File tree Expand file tree Collapse file tree 1 file changed +1
-17
lines changed
src/tools/build-manifest/src Expand file tree Collapse file tree 1 file changed +1
-17
lines changed Original file line number Diff line number Diff line change @@ -283,7 +283,7 @@ impl Builder {
283
283
pkg. target . insert ( host. to_string ( ) , Target {
284
284
available : true ,
285
285
url : Some ( self . url ( "rust" , host) ) ,
286
- hash : Some ( to_hex ( digest. as_ref ( ) ) ) ,
286
+ hash : Some ( digest) ,
287
287
components : Some ( components) ,
288
288
extensions : Some ( extensions) ,
289
289
} ) ;
@@ -409,19 +409,3 @@ impl Builder {
409
409
self . sign ( & dst) ;
410
410
}
411
411
}
412
-
413
- fn to_hex ( digest : & [ u8 ] ) -> String {
414
- let mut ret = String :: new ( ) ;
415
- for byte in digest {
416
- ret. push ( hex ( ( byte & 0xf0 ) >> 4 ) ) ;
417
- ret. push ( hex ( byte & 0xf ) ) ;
418
- }
419
- return ret;
420
-
421
- fn hex ( b : u8 ) -> char {
422
- match b {
423
- 0 ...9 => ( b'0' + b) as char ,
424
- _ => ( b'a' + b - 10 ) as char ,
425
- }
426
- }
427
- }
You can’t perform that action at this time.
0 commit comments