@@ -24,7 +24,7 @@ pub async fn handle_triage(
24
24
let start = body. start ;
25
25
let end = body. end ;
26
26
// Compare against self to get next
27
- let master_commits = rustc_artifacts :: master_commits ( ) . await ?;
27
+ let master_commits = collector :: master_commits ( ) . await ?;
28
28
let comparison = compare_given_commits (
29
29
start. clone ( ) ,
30
30
start. clone ( ) ,
@@ -76,7 +76,7 @@ pub async fn handle_compare(
76
76
body : api:: days:: Request ,
77
77
data : & InputData ,
78
78
) -> Result < api:: days:: Response , BoxedError > {
79
- let master_commits = rustc_artifacts :: master_commits ( ) . await ?;
79
+ let master_commits = collector :: master_commits ( ) . await ?;
80
80
let comparison =
81
81
compare_given_commits ( body. start , body. end , body. stat , data, & master_commits) . await ?;
82
82
@@ -213,7 +213,7 @@ pub async fn compare_given_commits(
213
213
end : Bound ,
214
214
stat : String ,
215
215
data : & InputData ,
216
- master_commits : & [ rustc_artifacts :: Commit ] ,
216
+ master_commits : & [ collector :: MasterCommit ] ,
217
217
) -> Result < Comparison , BoxedError > {
218
218
let a = data
219
219
. data_for ( true , start. clone ( ) )
@@ -257,7 +257,7 @@ impl DateData {
257
257
conn : & dyn database:: Connection ,
258
258
commit : ArtifactId ,
259
259
series : & mut [ selector:: SeriesResponse < T > ] ,
260
- master_commits : & [ rustc_artifacts :: Commit ] ,
260
+ master_commits : & [ collector :: MasterCommit ] ,
261
261
) -> Self
262
262
where
263
263
T : Iterator < Item = ( db:: ArtifactId , Option < f64 > ) > ,
@@ -336,7 +336,7 @@ pub struct Comparison {
336
336
337
337
impl Comparison {
338
338
/// Gets the previous commit before `a`
339
- pub fn prev ( & self , master_commits : & [ rustc_artifacts :: Commit ] ) -> Option < String > {
339
+ pub fn prev ( & self , master_commits : & [ collector :: MasterCommit ] ) -> Option < String > {
340
340
match & self . a_id {
341
341
ArtifactId :: Commit ( a) => master_commits
342
342
. iter ( )
@@ -350,7 +350,7 @@ impl Comparison {
350
350
pub async fn is_contiguous (
351
351
& self ,
352
352
conn : & dyn database:: Connection ,
353
- master_commits : & [ rustc_artifacts :: Commit ] ,
353
+ master_commits : & [ collector :: MasterCommit ] ,
354
354
) -> bool {
355
355
match ( & self . a_id , & self . b_id ) {
356
356
( ArtifactId :: Commit ( a) , ArtifactId :: Commit ( b) ) => {
@@ -365,7 +365,7 @@ impl Comparison {
365
365
}
366
366
367
367
/// Gets the sha of the next commit after `b`
368
- pub fn next ( & self , master_commits : & [ rustc_artifacts :: Commit ] ) -> Option < String > {
368
+ pub fn next ( & self , master_commits : & [ collector :: MasterCommit ] ) -> Option < String > {
369
369
match & self . b_id {
370
370
ArtifactId :: Commit ( b) => master_commits
371
371
. iter ( )
0 commit comments