Skip to content

Commit dbf193e

Browse files
committed
don't prefix crabs on cargo gpu show output
1 parent 40d1380 commit dbf193e

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

crates/cargo-gpu/src/show.rs

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,14 +31,22 @@ impl Show {
3131
/// Entrypoint
3232
pub fn run(self) -> anyhow::Result<()> {
3333
log::info!("{:?}: ", self.command);
34+
35+
#[expect(
36+
clippy::print_stdout,
37+
reason = "The output of this command could potentially be used in a script, \
38+
so we _don't_ want to use `crate::user_output`, as that prefixes a crab."
39+
)]
3440
match self.command {
3541
Info::CacheDirectory => {
36-
crate::user_output!("{}\n", cache_dir()?.display());
42+
println!("{}\n", cache_dir()?.display());
3743
}
3844
Info::SpirvSource(SpirvSourceDep { shader_crate }) => {
3945
let rust_gpu_source =
4046
crate::spirv_source::SpirvSource::get_spirv_std_dep_definition(&shader_crate)?;
41-
crate::user_output!("{rust_gpu_source}\n");
47+
{
48+
println!("{rust_gpu_source}\n");
49+
}
4250
}
4351
}
4452

0 commit comments

Comments
 (0)