Skip to content

Commit a1861df

Browse files
committed
as_ptr() -> as_ref().as_ptr()
Signed-off-by: Ludvig Liljenberg <[email protected]>
1 parent fdffe93 commit a1861df

File tree

1 file changed

+1
-1
lines changed
  • src/hyperlight_host/src/hypervisor

1 file changed

+1
-1
lines changed

src/hyperlight_host/src/hypervisor/whp.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -187,7 +187,7 @@ impl Vm for WhpVm {
187187
WHvGetVirtualProcessorRegisters(
188188
self.partition,
189189
0,
190-
WHP_SREGS_NAMES.as_ptr(),
190+
WHP_SREGS_NAMES.as_ref().as_ptr(),
191191
whp_sregs_values.len() as u32,
192192
whp_sregs_values.as_mut_ptr(),
193193
)?;

0 commit comments

Comments
 (0)