Remove useless code

This commit is contained in:
Kerollmops 2025-06-10 10:27:22 +02:00
parent 85939ae8ad
commit 6433e49882
No known key found for this signature in database
GPG Key ID: F250A4C4E3AE5F5F

View File

@ -124,15 +124,6 @@ impl<T> Setting<T> {
*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<T: Serialize> Serialize for Setting<T> {