mirror of
https://github.com/cloud-hypervisor/cloud-hypervisor.git
synced 2026-08-05 02:19:16 +00:00
vmm: trim qualified paths
Import the modules used in the crate instead of spelling the full paths at every use site, and drop the now-unnecessary crate-level Signed-off-by: Henry Hrvoje Tonkovac <htonkovac@gmail.com> Assisted-by: Claude:Opus-4.8
This commit is contained in:
committed by
Sebastien Boeuf
parent
0caa3ee73f
commit
025e782e50
+2
-2
@@ -1925,7 +1925,7 @@ impl ApiAction for VmNmi {
|
||||
mod unit_tests {
|
||||
use std::path::PathBuf;
|
||||
use std::time::{SystemTime, UNIX_EPOCH};
|
||||
use std::{fs, process};
|
||||
use std::{env, fs, process};
|
||||
|
||||
use super::*;
|
||||
|
||||
@@ -1939,7 +1939,7 @@ mod unit_tests {
|
||||
.duration_since(UNIX_EPOCH)
|
||||
.unwrap()
|
||||
.as_nanos();
|
||||
let path = std::env::temp_dir().join(format!(
|
||||
let path = env::temp_dir().join(format!(
|
||||
"cloud-hypervisor-api-{name}-{}-{unique}",
|
||||
process::id()
|
||||
));
|
||||
|
||||
Reference in New Issue
Block a user