diff --git a/src/theme/directories.rs b/src/theme/directories.rs index 61a3ae9..c437d31 100644 --- a/src/theme/directories.rs +++ b/src/theme/directories.rs @@ -3,7 +3,6 @@ pub struct Directory<'a> { pub name: &'a str, pub size: i16, pub scale: i16, - pub context: Option<&'a str>, pub type_: DirectoryType, pub maxsize: i16, pub minsize: i16, diff --git a/src/theme/parse.rs b/src/theme/parse.rs index 2beb98c..3d52ad8 100644 --- a/src/theme/parse.rs +++ b/src/theme/parse.rs @@ -46,7 +46,7 @@ impl Theme { .unwrap_or_default() } - fn get_directory<'a>(&'a self, name: &'a str) -> Option { + fn get_directory<'a>(&'a self, name: &'a str) -> Option> { self.index.section(Some(name)).map(|props| { let size = props .get("Size") @@ -59,7 +59,6 @@ impl Theme { .get("Scale") .and_then(|scale| str::parse(scale).ok()) .unwrap_or(1), - context: props.get("Context"), type_: props .get("Type") .map(DirectoryType::from)