mirror of
https://github.com/emilk/egui.git
synced 2026-09-02 14:50:03 -04:00
Add assert messages and print bad argument values in asserts (#5216)
Enabled the `missing_assert_message` lint * [x] I have followed the instructions in the PR template --------- Co-authored-by: Lucas Meurer <lucasmeurer96@gmail.com>
This commit is contained in:
@@ -53,7 +53,12 @@ fn tessellate_circles(c: &mut Criterion) {
|
||||
clipped_shapes.push(ClippedShape { clip_rect, shape });
|
||||
}
|
||||
}
|
||||
assert_eq!(clipped_shapes.len(), 100_000);
|
||||
assert_eq!(
|
||||
clipped_shapes.len(),
|
||||
100_000,
|
||||
"length of clipped shapes should be 100k, but was {}",
|
||||
clipped_shapes.len()
|
||||
);
|
||||
|
||||
let pixels_per_point = 2.0;
|
||||
let options = TessellationOptions::default();
|
||||
|
||||
Reference in New Issue
Block a user