From 6433e498829e91cd760f085b871e7e32cbb1ba12 Mon Sep 17 00:00:00 2001 From: Kerollmops Date: Tue, 10 Jun 2025 10:27:22 +0200 Subject: [PATCH] Remove useless code --- crates/milli/src/update/settings.rs | 9 --------- 1 file changed, 9 deletions(-) diff --git a/crates/milli/src/update/settings.rs b/crates/milli/src/update/settings.rs index 70a190b19..ae46cb5d9 100644 --- a/crates/milli/src/update/settings.rs +++ b/crates/milli/src/update/settings.rs @@ -124,15 +124,6 @@ impl Setting { *self = new; true } - - #[track_caller] - pub fn unwrap(self) -> T { - match self { - Setting::Set(value) => value, - Setting::Reset => panic!("Setting::Reset unwrapped"), - Setting::NotSet => panic!("Setting::NotSet unwrapped"), - } - } } impl Serialize for Setting {