mirror of
https://github.com/cloud-hypervisor/cloud-hypervisor.git
synced 2026-08-05 02:19:16 +00:00
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:
committed by
Bo Chen
parent
ff83b27937
commit
6683ae2d51
@@ -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())
|
||||
|
||||
Reference in New Issue
Block a user