From 92ecc301b643fc334dc91d91d95ba58fa5079dc9 Mon Sep 17 00:00:00 2001 From: Shannon Sterz Date: Thu, 6 Mar 2025 13:43:37 +0100 Subject: [PATCH] sys: add truncate option to `OpenOptions` in test case this resolves a clippy lint that checks for uses of `create()` without `truncate()` [1]. [1]: https://rust-lang.github.io/rust-clippy/master/index.html#suspicious_open_options Signed-off-by: Shannon Sterz --- proxmox-sys/tests/xattr.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/proxmox-sys/tests/xattr.rs b/proxmox-sys/tests/xattr.rs index 02d43934..42d7cdd5 100644 --- a/proxmox-sys/tests/xattr.rs +++ b/proxmox-sys/tests/xattr.rs @@ -14,6 +14,7 @@ fn test_fsetxattr_fgetxattr() { let file = OpenOptions::new() .write(true) .create(true) + .truncate(true) .open(&path) .unwrap();