chore: thanks clippy

This commit is contained in:
Paul Delafosse 2025-01-23 11:11:32 +01:00
parent 2147fc7b98
commit 8ede345b28
No known key found for this signature in database
GPG key ID: BE7DF2A0DC126E7C
2 changed files with 1 additions and 3 deletions

View file

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

View file

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