1
0
mirror of https://github.com/emilk/egui.git synced 2026-06-26 22:53:14 -04:00

use #[track_caller] in kitdiff

This commit is contained in:
Emil Ernerfeldt
2026-02-03 14:48:04 +01:00
parent 91a1e6f23e
commit 67d87233ff

View File

@@ -859,6 +859,7 @@ impl From<SnapshotResults> for Vec<SnapshotError> {
}
impl Drop for SnapshotResults {
#[track_caller]
fn drop(&mut self) {
// Don't panic if we are already panicking (the test probably failed for another reason)
if std::thread::panicking() {