@@ -8,7 +8,7 @@ use chrono::{Timelike, Utc};
88use collector:: api:: collected;
99use collector:: git:: get_commit_or_fake_it;
1010use collector:: git:: get_rust_commits as get_commits;
11- use collector:: { ArtifactData , Commit , CommitData , Date } ;
11+ use collector:: { ArtifactData , Commit , CommitData , Date , Sha } ;
1212use log:: { debug, error, info, warn} ;
1313use std:: collections:: BTreeMap ;
1414use std:: collections:: HashSet ;
@@ -200,7 +200,7 @@ fn bench_published(
200200 mut benchmarks : Vec < Benchmark > ,
201201) -> anyhow:: Result < ( ) > {
202202 let commit = Commit {
203- sha : String :: from ( "<none>" ) ,
203+ sha : Sha :: from ( "<none>" ) ,
204204 date : Date :: ymd_hms ( 2010 , 01 , 01 , 0 , 0 , 0 ) ,
205205 } ;
206206 let cfg = rustup:: Cfg :: from_env ( Arc :: new ( |_| { } ) ) . map_err ( |e| anyhow:: anyhow!( "{:?}" , e) ) ?;
@@ -500,7 +500,7 @@ fn main_result() -> anyhow::Result<i32> {
500500 // runs, because `commit` is only used when producing the output
501501 // files, not for interacting with a repo.
502502 let commit = Commit {
503- sha : id . to_string ( ) ,
503+ sha : Sha :: from ( id ) ,
504504 // Drop the nanoseconds; we don't want that level of precision.
505505 date : Date ( Utc :: now ( ) . with_nanosecond ( 0 ) . unwrap ( ) ) ,
506506 } ;
0 commit comments