@@ -70,7 +70,11 @@ impl fmt::Display for Toolchain {
70
70
fn fmt ( & self , f : & mut fmt:: Formatter < ' _ > ) -> fmt:: Result {
71
71
match self . spec {
72
72
ToolchainSpec :: Ci { ref commit, alt } => {
73
- let alt_s = if alt { "-alt" . to_string ( ) } else { String :: new ( ) } ;
73
+ let alt_s = if alt {
74
+ "-alt" . to_string ( )
75
+ } else {
76
+ String :: new ( )
77
+ } ;
74
78
write ! ( f, "{}{}" , commit, alt_s)
75
79
}
76
80
ToolchainSpec :: Nightly { ref date } => write ! ( f, "nightly-{}" , date. format( YYYY_MM_DD ) ) ,
@@ -82,7 +86,11 @@ impl Toolchain {
82
86
pub ( crate ) fn rustup_name ( & self ) -> String {
83
87
match self . spec {
84
88
ToolchainSpec :: Ci { ref commit, alt } => {
85
- let alt_s = if alt { "-alt" . to_string ( ) } else { String :: new ( ) } ;
89
+ let alt_s = if alt {
90
+ "-alt" . to_string ( )
91
+ } else {
92
+ String :: new ( )
93
+ } ;
86
94
format ! ( "bisector-ci-{}{}-{}" , commit, alt_s, self . host)
87
95
}
88
96
// N.B. We need to call this with a nonstandard name so that rustup utilizes the
@@ -390,7 +398,11 @@ impl fmt::Display for ToolchainSpec {
390
398
fn fmt ( & self , f : & mut fmt:: Formatter < ' _ > ) -> fmt:: Result {
391
399
match * self {
392
400
ToolchainSpec :: Ci { ref commit, alt } => {
393
- let alt_s = if alt { "-alt" . to_string ( ) } else { String :: new ( ) } ;
401
+ let alt_s = if alt {
402
+ "-alt" . to_string ( )
403
+ } else {
404
+ String :: new ( )
405
+ } ;
394
406
write ! ( f, "{}{}" , commit, alt_s)
395
407
}
396
408
ToolchainSpec :: Nightly { ref date } => write ! ( f, "nightly-{}" , date) ,
0 commit comments