fix clippy warning
This commit is contained in:
@@ -48,11 +48,7 @@ impl Settings {
|
|||||||
/// Get the default filename for the configuration, or None if that cannot
|
/// Get the default filename for the configuration, or None if that cannot
|
||||||
/// be determined.
|
/// be determined.
|
||||||
fn default_filename() -> Option<PathBuf> {
|
fn default_filename() -> Option<PathBuf> {
|
||||||
if let Some(dir) = dirs_next::config_dir() {
|
dirs_next::config_dir().map(|dir| dir.join("taskchampion.toml"))
|
||||||
Some(dir.join("taskchampion.toml"))
|
|
||||||
} else {
|
|
||||||
None
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Update this settings object with the contents of the given TOML file. Top-level settings
|
/// Update this settings object with the contents of the given TOML file. Top-level settings
|
||||||
|
|||||||
Reference in New Issue
Block a user