From 67401e8fafdab3fd9bbd1e4428a012508dc69467 Mon Sep 17 00:00:00 2001 From: Pierre HUBERT Date: Wed, 22 Jan 2025 19:43:32 +0100 Subject: [PATCH] Fix cargo clippy issue --- central_backend/src/logs/logs_manager.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/central_backend/src/logs/logs_manager.rs b/central_backend/src/logs/logs_manager.rs index fb0d1f8..0164f83 100644 --- a/central_backend/src/logs/logs_manager.rs +++ b/central_backend/src/logs/logs_manager.rs @@ -35,7 +35,7 @@ pub fn save_log( .as_bytes(), )?; file.flush()?; - file.unlock()?; + fs4::fs_std::FileExt::unlock(&file)?; Ok(()) }