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 <htonkovac@gmail.com>
Assisted-by: Claude:Opus-4.8
This commit is contained in:
Henry Hrvoje Tonkovac
2026-06-17 18:19:55 +02:00
committed by Bo Chen
parent ff83b27937
commit 6683ae2d51

View File

@@ -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())