mirror of
https://github.com/meilisearch/MeiliSearch
synced 2025-06-14 20:11:38 +02:00
Remove useless code
This commit is contained in:
parent
85939ae8ad
commit
6433e49882
@ -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> {
|
||||
|
Loading…
x
Reference in New Issue
Block a user