mirror of
https://github.com/gitui-org/gitui
synced 2026-05-24 09:28: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<()> {
|
fn migrate_config() -> Result<()> {
|
||||||
let cache_path: PathBuf = get_app_cache_path()?;
|
let cache_path: PathBuf = get_app_cache_path()?;
|
||||||
|
|
||||||
let entries = cache_path
|
let entries = cache_path.read_dir()?.flatten().filter(|entry| {
|
||||||
.read_dir()?
|
!entry.file_name().to_string_lossy().ends_with(".log")
|
||||||
.flat_map(|dir_entry| dir_entry)
|
});
|
||||||
.filter(|entry| {
|
|
||||||
!entry.file_name().to_string_lossy().ends_with(".log")
|
|
||||||
});
|
|
||||||
|
|
||||||
let config_path: PathBuf = get_app_config_path()?;
|
let config_path: PathBuf = get_app_config_path()?;
|
||||||
for entry in entries {
|
for entry in entries {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue