mirror of
https://github.com/meilisearch/MeiliSearch
synced 2025-06-15 04:21:36 +02:00
Remove useless code
This commit is contained in:
parent
85939ae8ad
commit
6433e49882
@ -124,15 +124,6 @@ impl<T> Setting<T> {
|
|||||||
*self = new;
|
*self = new;
|
||||||
true
|
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> {
|
impl<T: Serialize> Serialize for Setting<T> {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user