From c34af044311c986e5f8458cf61bab2508aca48fa Mon Sep 17 00:00:00 2001 From: Lionel DARNIS Date: Wed, 19 Aug 2026 21:53:10 +0200 Subject: [PATCH] fix: create_surface still gated on the removed cctk feature Upstream renamed the iced `cctk` features to `wayland` and moved the positive arm of create_surface() to the wayland_platform cfg alias, but left the negative arm on `feature = "cctk"`. That feature no longer exists, so its cfg was always true and both arms compiled at once, giving `expected (), found Option>`. Co-Authored-By: Claude Opus 5 (1M context) --- winit/src/platform_specific/mod.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/winit/src/platform_specific/mod.rs b/winit/src/platform_specific/mod.rs index e66cf5f1..e1bfd9b9 100644 --- a/winit/src/platform_specific/mod.rs +++ b/winit/src/platform_specific/mod.rs @@ -151,7 +151,7 @@ impl PlatformSpecific { { self.wayland.create_surface() } - #[cfg(not(all(feature = "cctk", target_os = "linux")))] + #[cfg(not(wayland_platform))] { None }