mirror of
https://github.com/emilk/egui.git
synced 2026-09-02 06:40:06 -04:00
use #[track_caller] in kitdiff
This commit is contained in:
@@ -859,6 +859,7 @@ impl From<SnapshotResults> for Vec<SnapshotError> {
|
|||||||
}
|
}
|
||||||
|
|
||||||
impl Drop for SnapshotResults {
|
impl Drop for SnapshotResults {
|
||||||
|
#[track_caller]
|
||||||
fn drop(&mut self) {
|
fn drop(&mut self) {
|
||||||
// Don't panic if we are already panicking (the test probably failed for another reason)
|
// Don't panic if we are already panicking (the test probably failed for another reason)
|
||||||
if std::thread::panicking() {
|
if std::thread::panicking() {
|
||||||
|
|||||||
Reference in New Issue
Block a user