This commit is contained in:
mdecimus
2026-02-03 12:29:49 +01:00
parent 7c8be27fcf
commit c6495f6fed
13 changed files with 10 additions and 2003 deletions

View File

@@ -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))