Skip to content

Commit 65da71d

Browse files
committed
patch vertical connector
Bug in previous clippy patch caused missing vertical connector in circuit display.
1 parent cbbfa0e commit 65da71d

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/circuits/mod.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -362,8 +362,7 @@ impl fmt::Display for Circuit {
362362
// Print vertical connector row (if not the last QDU)
363363
if r < num_qdus - 1 {
364364
write!(f, "{}", label_padding)?; // Padding for alignment
365-
for t in v_connect.iter().take(num_ops) {
366-
let connector = t[r];
365+
for connector in v_connect[r].iter().take(num_ops) {
367366
let padding_needed = GATE_WIDTH.saturating_sub(1); // Width minus 1 for the connector char
368367
let pre_pad = padding_needed / 2;
369368
let post_pad = padding_needed - pre_pad;

0 commit comments

Comments
 (0)