Skip to content

Commit 16cc0df

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 remove extra tokens. For more information, see rust-lang/rust#60024 and rust-lang/rust#60039
1 parent 7a370ef commit 16cc0df

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/tests.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -307,7 +307,7 @@ fn test_at() {
307307
error = true;
308308
assert_eq!(e, IndexOutOfBounds);
309309
}
310-
assert!(error;);
310+
assert!(error);
311311
}
312312

313313
#[test]

0 commit comments

Comments
 (0)