mirror of
https://github.com/emilk/egui.git
synced 2026-09-02 06:40:06 -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:
@@ -84,7 +84,10 @@ impl Rot2 {
|
||||
c: self.c / l,
|
||||
s: self.s / l,
|
||||
};
|
||||
debug_assert!(ret.is_finite());
|
||||
debug_assert!(
|
||||
ret.is_finite(),
|
||||
"Rot2::normalized produced a non-finite result"
|
||||
);
|
||||
ret
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user