Use edition 2024 in standalone examples (#10139)

This commit is contained in:
Connor Fitzgerald authored and GitHub committed 2026-08-22 03:38:36 +00:00
1 parent 48d3a109b6
commit d4359d7494
5 files changed
+7 -5

No files matched your search

@@ -1,6 +1,6 @@
[package]
name = "wgpu-example-01-hello-compute"
edition = "2021"
edition = "2024"
rust-version = "1.87"
publish = false
@@ -1,6 +1,6 @@
[package]
name = "wgpu-example-02-hello-window"
edition = "2021"
edition = "2024"
rust-version = "1.87"
publish = false
@@ -1,6 +1,6 @@
[package]
name = "wgpu-example-03-hdr-surface"
edition = "2021"
edition = "2024"
rust-version = "1.87"
publish = false
@@ -162,7 +162,9 @@ fn pick_mode(caps: &wgpu::SurfaceCapabilities, forced: Option<&str>) -> ModeChoi
Some("extended-display-p3") => cs == Cs::ExtendedDisplayP3,
Some("srgb") => false,
Some(other) => {
panic!("unknown mode {other:?} (use hdr10|hlg|scrgb|extended-srgb|extended-display-p3|srgb)")
panic!(
"unknown mode {other:?} (use hdr10|hlg|scrgb|extended-srgb|extended-display-p3|srgb)"
)
}
};
@@ -1,6 +1,6 @@
[package]
name = "wgpu-example-custom-backend"
edition = "2021"
edition = "2024"
rust-version = "1.87"
publish = false