Skip to content

Commit

Permalink
Fix assert! macro usage
Browse files Browse the repository at this point in the history
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
  • Loading branch information
rasendubi committed Apr 25, 2019
1 parent 745f9c0 commit 5689e4f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/src/recovery.rs
Original file line number Diff line number Diff line change
Expand Up @@ -208,7 +208,7 @@ impl QuicRecovery {
};

assert!(
self.largest_sent_packet < seq
self.largest_sent_packet < seq,
"cannot send packet older than last one"
);
self.largest_sent_packet = seq;
Expand Down

0 comments on commit 5689e4f

Please sign in to comment.