File tree 3 files changed +4
-4
lines changed
3 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -33,7 +33,7 @@ async fn cancel_timed_out_builds<Client: RepositoryClient>(
33
33
let running_builds = db. get_running_builds ( & repo. repository ) . await ?;
34
34
tracing:: info!( "Found {} running build(s)" , running_builds. len( ) ) ;
35
35
36
- let timeout = repo. config . load ( ) . timeout . clone ( ) ;
36
+ let timeout = repo. config . load ( ) . timeout ;
37
37
for build in running_builds {
38
38
if elapsed_time ( build. created_at ) >= timeout {
39
39
tracing:: info!( "Cancelling build {}" , build. commit_sha) ;
Original file line number Diff line number Diff line change @@ -61,7 +61,7 @@ async fn load_users_from_team_api(
61
61
PermissionType :: Try => "try" ,
62
62
} ;
63
63
64
- let normalized_name = repository_name. replace ( "-" , "_" ) ;
64
+ let normalized_name = repository_name. replace ( '-' , "_" ) ;
65
65
let url = format ! ( "https://team-api.infra.rust-lang.org/v1/permissions/bors.{normalized_name}.{permission}.json" ) ;
66
66
let users = reqwest:: get ( url)
67
67
. await
Original file line number Diff line number Diff line change @@ -383,7 +383,7 @@ impl TestRepositoryClient {
383
383
. unwrap_or_else ( || panic ! ( "Branch {branch} not found" ) ) ;
384
384
assert_eq ! (
385
385
history,
386
- & sha. into_iter ( )
386
+ & sha. iter ( )
387
387
. map( |s| CommitSha ( s. to_string( ) ) )
388
388
. collect:: <Vec <_>>( )
389
389
) ;
@@ -469,7 +469,7 @@ impl RepositoryClient for Arc<TestRepositoryClient> {
469
469
self . cancelled_workflows
470
470
. lock ( )
471
471
. unwrap ( )
472
- . extend ( run_ids. into_iter ( ) . map ( |id| id. 0 ) ) ;
472
+ . extend ( run_ids. iter ( ) . map ( |id| id. 0 ) ) ;
473
473
Ok ( ( ) )
474
474
}
475
475
You can’t perform that action at this time.
0 commit comments