From 2b8cd557aaf931845c9931420b062c799701bdaf Mon Sep 17 00:00:00 2001 From: Tamir Duberstein Date: Sat, 8 Nov 2025 15:31:53 -0500 Subject: [PATCH] xtask: drop build script logging prefix This code doesn't run under cargo. --- xtask/src/run.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/xtask/src/run.rs b/xtask/src/run.rs index 190d0cab..8cb06142 100644 --- a/xtask/src/run.rs +++ b/xtask/src/run.rs @@ -87,8 +87,8 @@ where } } Message::CompilerMessage(CompilerMessage { message, .. }) => { - for line in message.rendered.unwrap_or_default().split('\n') { - println!("cargo:warning={line}"); + if let Some(rendered) = message.rendered { + print!("{rendered}"); } } Message::TextLine(line) => { @@ -210,7 +210,7 @@ pub(crate) fn run(opts: Options) -> Result<()> { })?; if dest_path_exists != etag_path_exists { println!( - "cargo:warning=({}).exists()={} != ({})={} (mismatch)", + "({}).exists()={} != ({})={} (mismatch)", dest_path.display(), dest_path_exists, etag_path.display(), @@ -239,7 +239,7 @@ pub(crate) fn run(opts: Options) -> Result<()> { if status.code() != Some(0) { if dest_path_exists { println!( - "cargo:warning={curl:?} failed ({status:?}); using cached {}", + "{curl:?} failed ({status:?}); using cached {}", dest_path.display() ); } else {