1
0
mirror of https://github.com/emilk/egui.git synced 2026-09-02 23:00:04 -04:00

Merge branch 'main' into accesskit-subtrees

This commit is contained in:
lucasmerlin
2026-02-26 09:39:03 +01:00
12 changed files with 55 additions and 37 deletions

View File

@@ -721,11 +721,14 @@ impl<State> Harness<'_, State> {
})
.unwrap();
// Close temp file so it isn't locked when `open` tries to launch it (on Windows)
let path = temp_file.into_temp_path();
#[expect(clippy::print_stdout)]
{
println!("Wrote debug snapshot to: {}", path.display());
}
let result = open::that(path);
let result = open::that(&path);
if let Err(err) = result {
#[expect(clippy::print_stderr)]
{
@@ -856,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() {