chore: thanks clippy
This commit is contained in:
parent
2147fc7b98
commit
8ede345b28
2 changed files with 1 additions and 3 deletions
|
|
@ -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,
|
||||
|
|
|
|||
|
|
@ -46,7 +46,7 @@ impl Theme {
|
|||
.unwrap_or_default()
|
||||
}
|
||||
|
||||
fn get_directory<'a>(&'a self, name: &'a str) -> Option<Directory> {
|
||||
fn get_directory<'a>(&'a self, name: &'a str) -> Option<Directory<'a>> {
|
||||
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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue