Skip to content

Commit f4f532b

Browse files
committed
Fix windows issue
Signed-off-by: Simon Davies <simongdavies@users.noreply.github.com>
1 parent 270ea77 commit f4f532b

2 files changed

Lines changed: 2 additions & 1 deletion

File tree

src/hyperlight_host/src/hypervisor/surrogate_process_manager.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -342,7 +342,7 @@ mod tests {
342342
use std::thread;
343343
use std::time::{Duration, Instant};
344344

345-
use rand::{Rng, rng};
345+
use rand::{RngExt, rng};
346346
use windows::Win32::Foundation::HANDLE;
347347
use windows::Win32::System::Diagnostics::ToolHelp::{
348348
CreateToolhelp32Snapshot, PROCESSENTRY32, Process32First, Process32Next, TH32CS_SNAPPROCESS,

src/hyperlight_host/src/hypervisor/virtual_machine/whp.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ limitations under the License.
1616

1717
use std::os::raw::c_void;
1818

19+
#[cfg(feature = "trace_guest")]
1920
use tracing::Span;
2021
#[cfg(feature = "trace_guest")]
2122
use tracing_opentelemetry::OpenTelemetrySpanExt;

0 commit comments

Comments
 (0)