Fix clippy issues.
This commit is contained in:
@@ -47,8 +47,7 @@ impl Config {
|
||||
}
|
||||
|
||||
pub(crate) fn get_root_directory(&self) -> &Path {
|
||||
&self
|
||||
.config_path
|
||||
self.config_path
|
||||
.parent()
|
||||
.expect("Config file must exist inside a directory.")
|
||||
}
|
||||
@@ -86,8 +85,7 @@ impl Config {
|
||||
self.raw
|
||||
.stream
|
||||
.as_ref()
|
||||
.map(|stream| stream.entries_per_page)
|
||||
.flatten()
|
||||
.and_then(|stream| stream.entries_per_page)
|
||||
.unwrap_or(5)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user