cache config path call

This commit is contained in:
Stephan Dilly 2020-06-15 02:22:10 +02:00
parent 93065fb12b
commit c6eb066953

View File

@ -215,8 +215,9 @@ fn migrate_config() -> Result<()> {
!entry.file_name().to_string_lossy().ends_with(".log")
});
let config_path: PathBuf = get_app_config_path()?;
for entry in entries {
let mut config_path: PathBuf = get_app_config_path()?;
let mut config_path: PathBuf = config_path.clone();
config_path.push(entry.file_name());
fs::rename(entry.path(), config_path)?;
}