mirror of
https://github.com/extrawurst/gitui.git
synced 2024-11-27 10:15:07 +03:00
fix clippy
This commit is contained in:
parent
2bee1f5b6d
commit
f119595128
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user