Skip to content

Commit 5689e4f

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 745f9c0 commit 5689e4f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

core/src/recovery.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -208,7 +208,7 @@ impl QuicRecovery {
208208
};
209209

210210
assert!(
211-
self.largest_sent_packet < seq
211+
self.largest_sent_packet < seq,
212212
"cannot send packet older than last one"
213213
);
214214
self.largest_sent_packet = seq;

0 commit comments

Comments
 (0)