From df79b9def1a96540f9180fa791eb56581c91d00f Mon Sep 17 00:00:00 2001 From: Nicolas Date: Tue, 28 Oct 2025 19:00:44 +0100 Subject: [PATCH] Update HOW_TO_UPDATE_SCREENSHOTS for Windows compatibility --- crates/egui_kittest/src/snapshot.rs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/crates/egui_kittest/src/snapshot.rs b/crates/egui_kittest/src/snapshot.rs index f6511c451a0..0e7e40475a6 100644 --- a/crates/egui_kittest/src/snapshot.rs +++ b/crates/egui_kittest/src/snapshot.rs @@ -220,8 +220,12 @@ pub enum SnapshotError { }, } +#[cfg(not(target_os = "windows"))] const HOW_TO_UPDATE_SCREENSHOTS: &str = "Run `UPDATE_SNAPSHOTS=1 cargo test --all-features` to update the snapshots."; +#[cfg(target_os = "windows")] +const HOW_TO_UPDATE_SCREENSHOTS: &str = + "Run `$env:UPDATE_SNAPSHOTS=1; cargo test --all-features` to update the snapshots."; impl Display for SnapshotError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {