@@ -8,7 +8,7 @@ use chrono::{Timelike, Utc};
8
8
use collector:: api:: collected;
9
9
use collector:: git:: get_commit_or_fake_it;
10
10
use collector:: git:: get_rust_commits as get_commits;
11
- use collector:: { ArtifactData , Commit , CommitData , Date } ;
11
+ use collector:: { ArtifactData , Commit , CommitData , Date , Sha } ;
12
12
use log:: { debug, error, info, warn} ;
13
13
use std:: collections:: BTreeMap ;
14
14
use std:: collections:: HashSet ;
@@ -200,7 +200,7 @@ fn bench_published(
200
200
mut benchmarks : Vec < Benchmark > ,
201
201
) -> anyhow:: Result < ( ) > {
202
202
let commit = Commit {
203
- sha : String :: from ( "<none>" ) ,
203
+ sha : Sha :: from ( "<none>" ) ,
204
204
date : Date :: ymd_hms ( 2010 , 01 , 01 , 0 , 0 , 0 ) ,
205
205
} ;
206
206
let cfg = rustup:: Cfg :: from_env ( Arc :: new ( |_| { } ) ) . map_err ( |e| anyhow:: anyhow!( "{:?}" , e) ) ?;
@@ -500,7 +500,7 @@ fn main_result() -> anyhow::Result<i32> {
500
500
// runs, because `commit` is only used when producing the output
501
501
// files, not for interacting with a repo.
502
502
let commit = Commit {
503
- sha : id . to_string ( ) ,
503
+ sha : Sha :: from ( id ) ,
504
504
// Drop the nanoseconds; we don't want that level of precision.
505
505
date : Date ( Utc :: now ( ) . with_nanosecond ( 0 ) . unwrap ( ) ) ,
506
506
} ;
0 commit comments