Skip to content

Commit 419897c

Browse files
committed
Add cfg for FormatShortCmd
1 parent f83ecd8 commit 419897c

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/bootstrap/src/utils/exec.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -332,16 +332,19 @@ impl Default for CommandOutput {
332332

333333
/// Helper trait to format both Command and BootstrapCommand as a short execution line,
334334
/// without all the other details (e.g. environment variables).
335+
#[cfg(feature = "tracing")]
335336
pub trait FormatShortCmd {
336337
fn format_short_cmd(&self) -> String;
337338
}
338339

340+
#[cfg(feature = "tracing")]
339341
impl FormatShortCmd for BootstrapCommand {
340342
fn format_short_cmd(&self) -> String {
341343
self.command.format_short_cmd()
342344
}
343345
}
344346

347+
#[cfg(feature = "tracing")]
345348
impl FormatShortCmd for Command {
346349
fn format_short_cmd(&self) -> String {
347350
let program = Path::new(self.get_program());

0 commit comments

Comments
 (0)