Skip to content

Commit d3ea0e4

Browse files
committed
Do not output () on empty description
1 parent 4428a05 commit d3ea0e4

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

src/bootstrap/src/lib.rs

+5-3
Original file line numberDiff line numberDiff line change
@@ -1570,9 +1570,11 @@ Executed at: {executed_at}"#,
15701570
fn rust_version(&self) -> String {
15711571
let mut version = self.rust_info().version(self, &self.version);
15721572
if let Some(ref s) = self.config.description {
1573-
version.push_str(" (");
1574-
version.push_str(s);
1575-
version.push(')');
1573+
if !s.is_empty() {
1574+
version.push_str(" (");
1575+
version.push_str(s);
1576+
version.push(')');
1577+
}
15761578
}
15771579
version
15781580
}

0 commit comments

Comments
 (0)