mirror of
https://github.com/gitui-org/gitui
synced 2026-05-24 01:18:21 +00:00
fix clippy
This commit is contained in:
parent
2bee1f5b6d
commit
f119595128
1 changed files with 3 additions and 6 deletions
|
|
@ -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 a new issue