fix clippy

This commit is contained in:
Stephan Dilly 2020-06-15 12:30:44 +02:00
parent 2bee1f5b6d
commit f119595128

View File

@ -208,12 +208,9 @@ fn start_terminal<W: Write>(
fn migrate_config() -> Result<()> {
let cache_path: PathBuf = get_app_cache_path()?;
let entries = cache_path
.read_dir()?
.flat_map(|dir_entry| dir_entry)
.filter(|entry| {
!entry.file_name().to_string_lossy().ends_with(".log")
});
let entries = cache_path.read_dir()?.flatten().filter(|entry| {
!entry.file_name().to_string_lossy().ends_with(".log")
});
let config_path: PathBuf = get_app_config_path()?;
for entry in entries {