From 7061e9777c2a9e1bcd069478232621335465b6a9 Mon Sep 17 00:00:00 2001 From: Kevin Reid Date: Thu, 14 Mar 2024 16:17:27 -0700 Subject: [PATCH] [unstable-rust] Use `feature(min_exhaustive_patterns)` for `QuitFn`. --- all-is-cubes-ui/src/lib.rs | 1 + all-is-cubes-ui/src/ui_content/pages.rs | 1 - 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/all-is-cubes-ui/src/lib.rs b/all-is-cubes-ui/src/lib.rs index 454f6926d..ca3e45449 100644 --- a/all-is-cubes-ui/src/lib.rs +++ b/all-is-cubes-ui/src/lib.rs @@ -1,3 +1,4 @@ +#![feature(min_exhaustive_patterns)] #![feature(never_type)] #![feature(noop_waker)] diff --git a/all-is-cubes-ui/src/ui_content/pages.rs b/all-is-cubes-ui/src/ui_content/pages.rs index c033eec22..14f441448 100644 --- a/all-is-cubes-ui/src/ui_content/pages.rs +++ b/all-is-cubes-ui/src/ui_content/pages.rs @@ -52,7 +52,6 @@ pub(super) fn new_paused_page( // TODO: quit_fn should be an async function, but we don't have a way to // kick off a “Quitting...” task yet. move || match quit_fn() { - Ok(s) => match s {}, Err(_cancelled) => { // TODO: display message indicating failure