From 6683ae2d5188a266dbd8ac90922ab30b916a8bf4 Mon Sep 17 00:00:00 2001 From: Henry Hrvoje Tonkovac Date: Wed, 17 Jun 2026 18:19:55 +0200 Subject: [PATCH] block: trim qualified paths in vhdx tests Import the std modules used in the test module instead of spelling the full paths at every use site, and drop the now-unnecessary #[expect(clippy::absolute_paths)] on the vhdx internal test module. Signed-off-by: Henry Hrvoje Tonkovac Assisted-by: Claude:Opus-4.8 --- block/src/formats/vhdx/internal/mod.rs | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/block/src/formats/vhdx/internal/mod.rs b/block/src/formats/vhdx/internal/mod.rs index e7a62a362..3a6885950 100644 --- a/block/src/formats/vhdx/internal/mod.rs +++ b/block/src/formats/vhdx/internal/mod.rs @@ -256,9 +256,8 @@ pub(crate) fn uuid_from_guid(buf: &[u8]) -> Uuid { } #[cfg(test)] -// TODO: Trim qualified paths in these tests, then drop this expectation. -#[expect(clippy::absolute_paths)] mod tests { + use std::fs; use std::process::Command; use vmm_sys_util::tempfile::TempFile; @@ -291,7 +290,7 @@ mod tests { return; }; - let file = std::fs::OpenOptions::new() + let file = fs::OpenOptions::new() .read(true) .write(true) .open(tf.as_path())