Skip to content

Commit 15b1306

Browse files
committed
minor rustfmt issue
1 parent 3c39c2f commit 15b1306

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

crates/rustc_codegen_nvvm/src/context.rs

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -318,16 +318,19 @@ impl<'ll, 'tcx> CodegenCx<'ll, 'tcx> {
318318
self.constant_memory_usage.set(new_usage);
319319

320320
// If approaching the threshold: warns
321-
if new_usage > CONSTANT_MEMORY_WARNING_THRESHOLD_BYTES &&
322-
current_usage <= CONSTANT_MEMORY_WARNING_THRESHOLD_BYTES {
321+
if new_usage > CONSTANT_MEMORY_WARNING_THRESHOLD_BYTES
322+
&& current_usage <= CONSTANT_MEMORY_WARNING_THRESHOLD_BYTES
323+
{
323324
self.tcx.sess.dcx().warn(format!(
324325
"constant memory usage is approaching the limit: {new_usage} / {} bytes ({:.1}% used)",
325326
CONSTANT_MEMORY_SIZE_LIMIT_BYTES,
326327
(new_usage as f64 / CONSTANT_MEMORY_SIZE_LIMIT_BYTES as f64) * 100.0
327328
));
328329
}
329330

330-
trace!("Placing static `{instance}` ({size_bytes} bytes) in constant memory. Total usage: {new_usage} bytes");
331+
trace!(
332+
"Placing static `{instance}` ({size_bytes} bytes) in constant memory. Total usage: {new_usage} bytes"
333+
);
331334
AddressSpace(4)
332335
}
333336
} else {

0 commit comments

Comments
 (0)