File tree Expand file tree Collapse file tree 2 files changed +5
-3
lines changed Expand file tree Collapse file tree 2 files changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -419,7 +419,9 @@ impl RepositoryClient<'_> {
419
419
"https://api.github.com/repos/{repo}" ,
420
420
repo = self . repo,
421
421
) ) ?;
422
- self . client . without_body ( ) . send_with_response :: < Repository > ( )
422
+ self . client
423
+ . without_body ( )
424
+ . send_with_response :: < Repository > ( )
423
425
}
424
426
425
427
pub ( crate ) fn merge_pr ( & mut self , pr : u32 ) -> anyhow:: Result < ( ) > {
@@ -509,7 +511,7 @@ impl GitFile {
509
511
510
512
#[ derive( Debug , serde:: Deserialize ) ]
511
513
pub ( crate ) struct Repository {
512
- pub ( crate ) default_branch : String
514
+ pub ( crate ) default_branch : String ,
513
515
}
514
516
515
517
#[ derive( Copy , Clone ) ]
Original file line number Diff line number Diff line change @@ -114,7 +114,7 @@ impl Context {
114
114
remote. connect ( git2:: Direction :: Fetch ) ?;
115
115
116
116
let git_ref = match self . config . channel {
117
- Channel :: Nightly => format ! ( "refs/heads/{}" , remote. default_branch( ) ?. as_str( ) . unwrap( ) ) ,
117
+ Channel :: Nightly => remote. default_branch ( ) ?. as_str ( ) . unwrap ( ) . to_string ( ) ,
118
118
Channel :: Beta => "refs/heads/beta" . to_string ( ) ,
119
119
Channel :: Stable => "refs/heads/stable" . to_string ( ) ,
120
120
} ;
You can’t perform that action at this time.
0 commit comments