Skip to content

Commit 60232de

Browse files
jimblandyErichDonGubler
authored andcommitted
[naga wgsl-in] Tweak logging in front::wgsl::lower::conversion.
1 parent 14727d0 commit 60232de

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
@@ -315,11 +315,12 @@ impl<'source> super::ExpressionContext<'source, '_, '_> {
315315
.into_iter()
316316
.map(|&c| self.typifier()[c].inner_with(types));
317317
log::debug!(
318-
"wgsl automatic_conversion_consensus: {:?}",
318+
"wgsl automatic_conversion_consensus: {}",
319319
inners
320320
.clone()
321321
.map(|inner| self.type_inner_to_string(inner))
322322
.collect::<Vec<String>>()
323+
.join(", ")
323324
);
324325
let mut best = inners.next().unwrap().scalar().ok_or(0_usize)?;
325326
for (inner, i) in inners.zip(1..) {
@@ -332,7 +333,7 @@ impl<'source> super::ExpressionContext<'source, '_, '_> {
332333
}
333334
}
334335

335-
log::debug!(" consensus: {:?}", best.to_wgsl_for_diagnostics());
336+
log::debug!(" consensus: {}", best.to_wgsl_for_diagnostics());
336337
Ok(best)
337338
}
338339
}

0 commit comments

Comments
 (0)