fix: apply clippy suggestions (#120)

* fix: apply clippy suggestions

* fmt

* clippy for linux targets
This commit is contained in:
Fabian-Lars
2023-02-01 11:27:33 +01:00
committed by GitHub
parent 2e515abba7
commit 4bb200aac5
8 changed files with 213 additions and 171 deletions
+1 -1
View File
@@ -308,7 +308,7 @@ fn get_log_file_path(
rotation_strategy: &RotationStrategy,
max_file_size: u128,
) -> plugin::Result<PathBuf> {
let path = dir.as_ref().join(format!("{}.log", app_name));
let path = dir.as_ref().join(format!("{app_name}.log"));
if path.exists() {
let log_size = File::open(&path)?.metadata()?.len() as u128;