RIP TOML
This commit is contained in:
@@ -5,7 +5,6 @@
|
||||
*/
|
||||
|
||||
use jmap_tools::{Element, Property, Value};
|
||||
use utils::config::utils::ParseValue;
|
||||
|
||||
#[derive(
|
||||
rkyv::Archive,
|
||||
@@ -109,12 +108,6 @@ impl From<&ArchivedSpecialUse> for SpecialUse {
|
||||
}
|
||||
}
|
||||
|
||||
impl ParseValue for SpecialUse {
|
||||
fn parse_value(value: &str) -> Result<Self, String> {
|
||||
SpecialUse::parse(value).ok_or_else(|| format!("Unknown folder role {:?}", value))
|
||||
}
|
||||
}
|
||||
|
||||
impl<'x, P: Property, E: Element + From<SpecialUse>> From<SpecialUse> for Value<'x, P, E> {
|
||||
fn from(id: SpecialUse) -> Self {
|
||||
Value::Element(E::from(id))
|
||||
|
||||
Reference in New Issue
Block a user