Skip to content

Commit 0eafc21

Browse files
committed
Fix assert! macro usage
There is a bug in rustc that allows adding invalid trailing tokens to the `assert!` macro call. They are currently ignored but are going to produce errors in the future. Fix assert! macro usage to add missing comma. For more information, see rust-lang/rust#60024 and rust-lang/rust#60039
1 parent 92b1621 commit 0eafc21

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/qustate.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ impl QuState
117117
bits: &[usize])
118118
where G: crate::gates::Gate + ?Sized
119119
{
120-
assert!(control.len() == self.nr_shots
120+
assert!(control.len() == self.nr_shots,
121121
"The number of control bits does not match the number of runs");
122122

123123
let gate_bits = gate.nr_affected_bits();

0 commit comments

Comments
 (0)