fix clippy warning

This commit is contained in:
Dustin J. Mitchell 2021-05-18 18:57:29 +00:00
parent 023e638335
commit 2345a57940

View file

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