We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4428a05 commit d3ea0e4Copy full SHA for d3ea0e4
src/bootstrap/src/lib.rs
@@ -1570,9 +1570,11 @@ Executed at: {executed_at}"#,
1570
fn rust_version(&self) -> String {
1571
let mut version = self.rust_info().version(self, &self.version);
1572
if let Some(ref s) = self.config.description {
1573
- version.push_str(" (");
1574
- version.push_str(s);
1575
- version.push(')');
+ if !s.is_empty() {
+ version.push_str(" (");
+ version.push_str(s);
1576
+ version.push(')');
1577
+ }
1578
}
1579
version
1580
0 commit comments