Skip to content

Commit 2a288bb

Browse files
committed
[naga wgsl-in] Tweak logging in front::wgsl::lower::conversion.
1 parent 4dd4c32 commit 2a288bb

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
@@ -312,11 +312,12 @@ impl<'source> super::ExpressionContext<'source, '_, '_> {
312312
.into_iter()
313313
.map(|&c| self.typifier()[c].inner_with(types));
314314
log::debug!(
315-
"wgsl automatic_conversion_consensus: {:?}",
315+
"wgsl automatic_conversion_consensus: {}",
316316
inners
317317
.clone()
318318
.map(|inner| self.type_inner_to_string(inner))
319319
.collect::<Vec<String>>()
320+
.join(", ")
320321
);
321322
let mut best = inners.next().unwrap().scalar().ok_or(0_usize)?;
322323
for (inner, i) in inners.zip(1..) {
@@ -329,7 +330,7 @@ impl<'source> super::ExpressionContext<'source, '_, '_> {
329330
}
330331
}
331332

332-
log::debug!(" consensus: {:?}", best.to_wgsl_for_diagnostics());
333+
log::debug!(" consensus: {}", best.to_wgsl_for_diagnostics());
333334
Ok(best)
334335
}
335336
}

0 commit comments

Comments
 (0)