From e05197e81c40a312eb867c704dc99c44a5accf0a Mon Sep 17 00:00:00 2001 From: "alex.lyn" Date: Fri, 4 Jul 2025 20:03:10 +0800 Subject: [PATCH] safe-path: Do cargo check and reduce warnings Reduce warings caused by non-formatted or unchecked operations. Signed-off-by: alex.lyn --- src/libs/safe-path/src/pinned_path_buf.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/libs/safe-path/src/pinned_path_buf.rs b/src/libs/safe-path/src/pinned_path_buf.rs index 15c80f4ce9..df7396fdb8 100644 --- a/src/libs/safe-path/src/pinned_path_buf.rs +++ b/src/libs/safe-path/src/pinned_path_buf.rs @@ -355,6 +355,7 @@ mod tests { .read(false) .write(true) .create(true) + .truncate(true) .mode(0o200) .open(&path) .unwrap(); @@ -376,6 +377,7 @@ mod tests { .read(false) .write(true) .create(true) + .truncate(true) .mode(0o200) .open(&path) .unwrap();