Skip to content

Commit 431782f

Browse files
committed
[naga wgsl-in] Tweak logging in front::wgsl::lower::conversion.
1 parent 0387c92 commit 431782f

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

naga/src/front/wgsl/lower/conversion.rs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -314,11 +314,12 @@ impl<'source> super::ExpressionContext<'source, '_, '_> {
314314
.into_iter()
315315
.map(|&c| self.typifier()[c].inner_with(types));
316316
log::debug!(
317-
"wgsl automatic_conversion_consensus: {:?}",
317+
"wgsl automatic_conversion_consensus: {}",
318318
inners
319319
.clone()
320320
.map(|inner| inner.to_wgsl_for_error(&self.module.to_ctx()))
321321
.collect::<Vec<String>>()
322+
.join(", ")
322323
);
323324
let mut best = inners.next().unwrap().scalar().ok_or(0_usize)?;
324325
for (inner, i) in inners.zip(1..) {
@@ -331,7 +332,7 @@ impl<'source> super::ExpressionContext<'source, '_, '_> {
331332
}
332333
}
333334

334-
log::debug!(" consensus: {:?}", best.to_wgsl_for_error());
335+
log::debug!(" consensus: {}", best.to_wgsl_for_error());
335336
Ok(best)
336337
}
337338
}

0 commit comments

Comments
 (0)