Skip to content

Commit 763ec2d

Browse files
committed
2024 edition cargo fmt
Signed-off-by: Ludvig Liljenberg <[email protected]>
1 parent ade8372 commit 763ec2d

File tree

99 files changed

+307
-287
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

99 files changed

+307
-287
lines changed

Diff for: fuzz/fuzz_targets/host_call.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,8 @@ limitations under the License.
1919
use std::sync::{Mutex, OnceLock};
2020

2121
use hyperlight_host::func::{ParameterValue, ReturnType};
22-
use hyperlight_host::sandbox::uninitialized::GuestBinary;
2322
use hyperlight_host::sandbox::SandboxConfiguration;
23+
use hyperlight_host::sandbox::uninitialized::GuestBinary;
2424
use hyperlight_host::sandbox_state::sandbox::EvolvableSandbox;
2525
use hyperlight_host::sandbox_state::transition::Noop;
2626
use hyperlight_host::{HyperlightError, MultiUseSandbox, UninitializedSandbox};

Diff for: fuzz/fuzz_targets/host_print.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ use hyperlight_host::sandbox_state::sandbox::EvolvableSandbox;
88
use hyperlight_host::sandbox_state::transition::Noop;
99
use hyperlight_host::{MultiUseSandbox, UninitializedSandbox};
1010
use hyperlight_testing::simple_guest_for_fuzzing_as_string;
11-
use libfuzzer_sys::{fuzz_target, Corpus};
11+
use libfuzzer_sys::{Corpus, fuzz_target};
1212

1313
static SANDBOX: OnceLock<Mutex<MultiUseSandbox>> = OnceLock::new();
1414

Diff for: src/hyperlight_common/src/flatbuffer_wrappers/function_call.rs

+7-7
Original file line numberDiff line numberDiff line change
@@ -17,18 +17,18 @@ limitations under the License.
1717
use alloc::string::{String, ToString};
1818
use alloc::vec::Vec;
1919

20-
use anyhow::{bail, Error, Result};
21-
use flatbuffers::{size_prefixed_root, WIPOffset};
20+
use anyhow::{Error, Result, bail};
21+
use flatbuffers::{WIPOffset, size_prefixed_root};
2222
#[cfg(feature = "tracing")]
23-
use tracing::{instrument, Span};
23+
use tracing::{Span, instrument};
2424

2525
use super::function_types::{ParameterValue, ReturnType};
2626
use crate::flatbuffers::hyperlight::generated::{
27-
hlbool, hlboolArgs, hldouble, hldoubleArgs, hlfloat, hlfloatArgs, hlint, hlintArgs, hllong,
28-
hllongArgs, hlstring, hlstringArgs, hluint, hluintArgs, hlulong, hlulongArgs, hlvecbytes,
29-
hlvecbytesArgs, FunctionCall as FbFunctionCall, FunctionCallArgs as FbFunctionCallArgs,
27+
FunctionCall as FbFunctionCall, FunctionCallArgs as FbFunctionCallArgs,
3028
FunctionCallType as FbFunctionCallType, Parameter, ParameterArgs,
31-
ParameterValue as FbParameterValue,
29+
ParameterValue as FbParameterValue, hlbool, hlboolArgs, hldouble, hldoubleArgs, hlfloat,
30+
hlfloatArgs, hlint, hlintArgs, hllong, hllongArgs, hlstring, hlstringArgs, hluint, hluintArgs,
31+
hlulong, hlulongArgs, hlvecbytes, hlvecbytesArgs,
3232
};
3333

3434
/// The type of function call.

Diff for: src/hyperlight_common/src/flatbuffer_wrappers/function_types.rs

+6-6
Original file line numberDiff line numberDiff line change
@@ -17,18 +17,18 @@ limitations under the License.
1717
use alloc::string::{String, ToString};
1818
use alloc::vec::Vec;
1919

20-
use anyhow::{anyhow, bail, Error, Result};
20+
use anyhow::{Error, Result, anyhow, bail};
2121
use flatbuffers::size_prefixed_root;
2222
#[cfg(feature = "tracing")]
23-
use tracing::{instrument, Span};
23+
use tracing::{Span, instrument};
2424

2525
use crate::flatbuffers::hyperlight::generated::{
26-
hlbool, hlboolArgs, hldouble, hldoubleArgs, hlfloat, hlfloatArgs, hlint, hlintArgs, hllong,
27-
hllongArgs, hlsizeprefixedbuffer, hlsizeprefixedbufferArgs, hlstring, hlstringArgs, hluint,
28-
hluintArgs, hlulong, hlulongArgs, hlvoid, hlvoidArgs,
2926
FunctionCallResult as FbFunctionCallResult, FunctionCallResultArgs as FbFunctionCallResultArgs,
3027
Parameter, ParameterType as FbParameterType, ParameterValue as FbParameterValue,
31-
ReturnType as FbReturnType, ReturnValue as FbReturnValue,
28+
ReturnType as FbReturnType, ReturnValue as FbReturnValue, hlbool, hlboolArgs, hldouble,
29+
hldoubleArgs, hlfloat, hlfloatArgs, hlint, hlintArgs, hllong, hllongArgs, hlsizeprefixedbuffer,
30+
hlsizeprefixedbufferArgs, hlstring, hlstringArgs, hluint, hluintArgs, hlulong, hlulongArgs,
31+
hlvoid, hlvoidArgs,
3232
};
3333

3434
/// Supported parameter types with values for function calling.

Diff for: src/hyperlight_common/src/flatbuffer_wrappers/guest_error.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ use alloc::vec::Vec;
2222
use anyhow::{Error, Result};
2323
use flatbuffers::size_prefixed_root;
2424
#[cfg(feature = "tracing")]
25-
use tracing::{instrument, Span};
25+
use tracing::{Span, instrument};
2626

2727
use crate::flatbuffers::hyperlight::generated::{
2828
ErrorCode as FbErrorCode, GuestError as FbGuestError, GuestErrorArgs,

Diff for: src/hyperlight_common/src/flatbuffer_wrappers/guest_log_data.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,10 @@ limitations under the License.
1717
use alloc::string::{String, ToString};
1818
use alloc::vec::Vec;
1919

20-
use anyhow::{anyhow, Error, Result};
20+
use anyhow::{Error, Result, anyhow};
2121
use flatbuffers::size_prefixed_root;
2222
#[cfg(feature = "tracing")]
23-
use tracing::{instrument, Span};
23+
use tracing::{Span, instrument};
2424

2525
use super::guest_log_level::LogLevel;
2626
use crate::flatbuffers::hyperlight::generated::{

Diff for: src/hyperlight_common/src/flatbuffer_wrappers/guest_log_level.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,11 @@ See the License for the specific language governing permissions and
1414
limitations under the License.
1515
*/
1616

17-
use anyhow::{bail, Error, Result};
17+
use anyhow::{Error, Result, bail};
1818
use log::Level;
1919
use strum::EnumIter;
2020
#[cfg(feature = "tracing")]
21-
use tracing::{instrument, Span};
21+
use tracing::{Span, instrument};
2222

2323
use crate::flatbuffers::hyperlight::generated::LogLevel as FbLogLevel;
2424

Diff for: src/hyperlight_common/src/flatbuffer_wrappers/host_function_definition.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,10 @@ limitations under the License.
1717
use alloc::string::{String, ToString};
1818
use alloc::vec::Vec;
1919

20-
use anyhow::{anyhow, Error, Result};
20+
use anyhow::{Error, Result, anyhow};
2121
use flatbuffers::{FlatBufferBuilder, WIPOffset};
2222
#[cfg(feature = "tracing")]
23-
use tracing::{instrument, Span};
23+
use tracing::{Span, instrument};
2424

2525
use super::function_types::{ParameterType, ReturnType};
2626
use crate::flatbuffers::hyperlight::generated::{

Diff for: src/hyperlight_common/src/flatbuffer_wrappers/host_function_details.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,9 @@ limitations under the License.
1717
use alloc::vec::Vec;
1818

1919
use anyhow::{Error, Result};
20-
use flatbuffers::{size_prefixed_root, WIPOffset};
20+
use flatbuffers::{WIPOffset, size_prefixed_root};
2121
#[cfg(feature = "tracing")]
22-
use tracing::{instrument, Span};
22+
use tracing::{Span, instrument};
2323

2424
use super::host_function_definition::HostFunctionDefinition;
2525
use crate::flatbuffers::hyperlight::generated::{

Diff for: src/hyperlight_common/src/flatbuffer_wrappers/util.rs

+6-6
Original file line numberDiff line numberDiff line change
@@ -19,15 +19,15 @@ use alloc::vec::Vec;
1919
use flatbuffers::FlatBufferBuilder;
2020

2121
use crate::flatbuffers::hyperlight::generated::{
22-
hlbool as Fbhlbool, hlboolArgs as FbhlboolArgs, hldouble as Fbhldouble,
23-
hldoubleArgs as FbhldoubleArgs, hlfloat as Fbhlfloat, hlfloatArgs as FbhlfloatArgs,
24-
hlint as Fbhlint, hlintArgs as FbhlintArgs, hllong as Fbhllong, hllongArgs as FbhllongArgs,
25-
hlsizeprefixedbuffer as Fbhlsizeprefixedbuffer,
22+
FunctionCallResult as FbFunctionCallResult, FunctionCallResultArgs as FbFunctionCallResultArgs,
23+
ReturnValue as FbReturnValue, hlbool as Fbhlbool, hlboolArgs as FbhlboolArgs,
24+
hldouble as Fbhldouble, hldoubleArgs as FbhldoubleArgs, hlfloat as Fbhlfloat,
25+
hlfloatArgs as FbhlfloatArgs, hlint as Fbhlint, hlintArgs as FbhlintArgs, hllong as Fbhllong,
26+
hllongArgs as FbhllongArgs, hlsizeprefixedbuffer as Fbhlsizeprefixedbuffer,
2627
hlsizeprefixedbufferArgs as FbhlsizeprefixedbufferArgs, hlstring as Fbhlstring,
2728
hlstringArgs as FbhlstringArgs, hluint as Fbhluint, hluintArgs as FbhluintArgs,
2829
hlulong as Fbhlulong, hlulongArgs as FbhlulongArgs, hlvoid as Fbhlvoid,
29-
hlvoidArgs as FbhlvoidArgs, FunctionCallResult as FbFunctionCallResult,
30-
FunctionCallResultArgs as FbFunctionCallResultArgs, ReturnValue as FbReturnValue,
30+
hlvoidArgs as FbhlvoidArgs,
3131
};
3232

3333
/// Flatbuffer-encodes the given value

Diff for: src/hyperlight_guest/src/entrypoint.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ limitations under the License.
1515
*/
1616

1717
use core::arch::asm;
18-
use core::ffi::{c_char, c_void, CStr};
18+
use core::ffi::{CStr, c_char, c_void};
1919
use core::ptr::copy_nonoverlapping;
2020

2121
use hyperlight_common::mem::{HyperlightPEB, RunMode};
@@ -26,7 +26,7 @@ use crate::gdt::load_gdt;
2626
use crate::guest_error::reset_error;
2727
use crate::guest_function_call::dispatch_function;
2828
use crate::guest_logger::init_logger;
29-
use crate::host_function_call::{outb, OutBAction};
29+
use crate::host_function_call::{OutBAction, outb};
3030
use crate::idtr::load_idt;
3131
use crate::{
3232
__security_cookie, HEAP_ALLOCATOR, MIN_STACK_ADDRESS, OS_PAGE_SIZE, OUTB_PTR,

Diff for: src/hyperlight_guest/src/guest_error.rs

+3-3
Original file line numberDiff line numberDiff line change
@@ -16,14 +16,14 @@ limitations under the License.
1616

1717
use alloc::string::{String, ToString};
1818
use alloc::vec::Vec;
19-
use core::ffi::{c_char, CStr};
19+
use core::ffi::{CStr, c_char};
2020

2121
use hyperlight_common::flatbuffer_wrappers::guest_error::{ErrorCode, GuestError};
2222
use log::error;
2323

24-
use crate::entrypoint::halt;
25-
use crate::host_function_call::{outb, OutBAction};
2624
use crate::P_PEB;
25+
use crate::entrypoint::halt;
26+
use crate::host_function_call::{OutBAction, outb};
2727

2828
pub(crate) fn write_error(error_code: ErrorCode, message: Option<&str>) {
2929
let guest_error = GuestError::new(

Diff for: src/hyperlight_guest/src/guest_function_call.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,12 +21,12 @@ use hyperlight_common::flatbuffer_wrappers::function_call::{FunctionCall, Functi
2121
use hyperlight_common::flatbuffer_wrappers::function_types::ParameterType;
2222
use hyperlight_common::flatbuffer_wrappers::guest_error::ErrorCode;
2323

24+
use crate::REGISTERED_GUEST_FUNCTIONS;
2425
use crate::entrypoint::halt;
2526
use crate::error::{HyperlightGuestError, Result};
2627
use crate::guest_error::{reset_error, set_error};
2728
use crate::shared_input_data::try_pop_shared_input_data_into;
2829
use crate::shared_output_data::push_shared_output_data;
29-
use crate::REGISTERED_GUEST_FUNCTIONS;
3030

3131
type GuestFunc = fn(&FunctionCall) -> Result<Vec<u8>>;
3232

Diff for: src/hyperlight_guest/src/host_functions.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,8 @@ use hyperlight_common::flatbuffer_wrappers::function_types::ParameterType;
2424
use hyperlight_common::flatbuffer_wrappers::guest_error::ErrorCode;
2525
use hyperlight_common::flatbuffer_wrappers::host_function_details::HostFunctionDetails;
2626

27-
use crate::error::{HyperlightGuestError, Result};
2827
use crate::P_PEB;
28+
use crate::error::{HyperlightGuestError, Result};
2929

3030
pub(crate) fn validate_host_function_call(function_call: &FunctionCall) -> Result<()> {
3131
// get host function details

Diff for: src/hyperlight_guest/src/idt.rs

+3-3
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,9 @@ limitations under the License.
1515
*/
1616

1717
use crate::interrupt_entry::{
18-
_do_excp0, _do_excp1, _do_excp10, _do_excp11, _do_excp12, _do_excp13, _do_excp14, _do_excp15,
19-
_do_excp16, _do_excp17, _do_excp18, _do_excp19, _do_excp2, _do_excp20, _do_excp3, _do_excp30,
20-
_do_excp4, _do_excp5, _do_excp6, _do_excp7, _do_excp8, _do_excp9,
18+
_do_excp0, _do_excp1, _do_excp2, _do_excp3, _do_excp4, _do_excp5, _do_excp6, _do_excp7,
19+
_do_excp8, _do_excp9, _do_excp10, _do_excp11, _do_excp12, _do_excp13, _do_excp14, _do_excp15,
20+
_do_excp16, _do_excp17, _do_excp18, _do_excp19, _do_excp20, _do_excp30,
2121
};
2222

2323
// An entry in the Interrupt Descriptor Table (IDT)

Diff for: src/hyperlight_guest/src/idtr.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
use core::ptr::addr_of;
22

3-
use crate::idt::{init_idt, IdtEntry, IDT};
3+
use crate::idt::{IDT, IdtEntry, init_idt};
44

55
#[repr(C, packed)]
66
pub struct Idtr {

Diff for: src/hyperlight_guest/src/lib.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -19,14 +19,14 @@ limitations under the License.
1919
use alloc::string::ToString;
2020
use core::hint::unreachable_unchecked;
2121
use core::ptr::copy_nonoverlapping;
22-
use spin::Mutex;
2322

2423
use buddy_system_allocator::LockedHeap;
2524
use guest_function_register::GuestFunctionRegister;
2625
use hyperlight_common::flatbuffer_wrappers::guest_error::ErrorCode;
2726
use hyperlight_common::mem::{HyperlightPEB, RunMode};
27+
use spin::Mutex;
2828

29-
use crate::host_function_call::{outb, OutBAction};
29+
use crate::host_function_call::{OutBAction, outb};
3030
extern crate alloc;
3131

3232
// Modules

Diff for: src/hyperlight_guest/src/logging.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ use alloc::vec::Vec;
2020
use hyperlight_common::flatbuffer_wrappers::guest_log_data::GuestLogData;
2121
use hyperlight_common::flatbuffer_wrappers::guest_log_level::LogLevel;
2222

23-
use crate::host_function_call::{outb, OutBAction};
23+
use crate::host_function_call::{OutBAction, outb};
2424
use crate::shared_output_data::push_shared_output_data;
2525

2626
fn write_log_data(

Diff for: src/hyperlight_guest/src/print.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -16,11 +16,11 @@ limitations under the License.
1616

1717
use alloc::string::String;
1818
use alloc::vec::Vec;
19-
use core::ffi::{c_char, CStr};
19+
use core::ffi::{CStr, c_char};
2020
use core::mem;
21-
use spin::Mutex;
2221

2322
use hyperlight_common::flatbuffer_wrappers::function_types::{ParameterValue, ReturnType};
23+
use spin::Mutex;
2424

2525
use crate::host_function_call::call_host_function;
2626

Diff for: src/hyperlight_guest/src/shared_input_data.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,8 @@ use core::slice::from_raw_parts_mut;
2121

2222
use hyperlight_common::flatbuffer_wrappers::guest_error::ErrorCode;
2323

24-
use crate::error::{HyperlightGuestError, Result};
2524
use crate::P_PEB;
25+
use crate::error::{HyperlightGuestError, Result};
2626

2727
// Pops the top element from the shared input data buffer and returns it as a T
2828
pub fn try_pop_shared_input_data_into<T>() -> Result<T>

Diff for: src/hyperlight_guest/src/shared_output_data.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,8 @@ use core::slice::from_raw_parts_mut;
2121

2222
use hyperlight_common::flatbuffer_wrappers::guest_error::ErrorCode;
2323

24-
use crate::error::{HyperlightGuestError, Result};
2524
use crate::P_PEB;
25+
use crate::error::{HyperlightGuestError, Result};
2626

2727
pub fn push_shared_output_data(data: Vec<u8>) -> Result<()> {
2828
let peb_ptr = unsafe { P_PEB.unwrap() };

Diff for: src/hyperlight_guest_capi/src/dispatch.rs

+1-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
use alloc::boxed::Box;
22
use alloc::slice;
33
use alloc::vec::Vec;
4-
use core::ffi::{c_char, CStr};
4+
use core::ffi::{CStr, c_char};
55
use core::mem;
66

77
use hyperlight_common::flatbuffer_wrappers::function_call::FunctionCall;
@@ -11,7 +11,6 @@ use hyperlight_guest::error::{HyperlightGuestError, Result};
1111
use hyperlight_guest::guest_function_definition::GuestFunctionDefinition;
1212
use hyperlight_guest::guest_function_register::GuestFunctionRegister;
1313
use hyperlight_guest::host_function_call::call_host_function;
14-
1514
use spin::Mutex;
1615

1716
use crate::types::{FfiFunctionCall, FfiVec};

Diff for: src/hyperlight_guest_capi/src/flatbuffer.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
use alloc::boxed::Box;
2-
use core::ffi::{c_char, CStr};
2+
use core::ffi::{CStr, c_char};
33

44
use hyperlight_common::flatbuffer_wrappers::util::get_flatbuffer_result;
55
use hyperlight_guest::host_function_call::get_host_return_value;

Diff for: src/hyperlight_guest_capi/src/types/function_call.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ use alloc::ffi::CString;
33
use alloc::slice;
44
use alloc::string::String;
55
use alloc::vec::Vec;
6-
use core::ffi::{c_char, CStr};
6+
use core::ffi::{CStr, c_char};
77

88
use hyperlight_common::flatbuffer_wrappers::function_call::FunctionCall;
99
use hyperlight_common::flatbuffer_wrappers::function_types::{ParameterValue, ReturnType};

Diff for: src/hyperlight_guest_capi/src/types/parameter.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
use alloc::ffi::CString;
2-
use core::ffi::{c_char, CStr};
2+
use core::ffi::{CStr, c_char};
33

44
use hyperlight_common::flatbuffer_wrappers::function_types::{ParameterType, ParameterValue};
55
use hyperlight_guest::error::Result;

Diff for: src/hyperlight_host/benches/benchmarks.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -16,13 +16,13 @@ limitations under the License.
1616

1717
use std::sync::{Arc, Mutex};
1818

19-
use criterion::{criterion_group, criterion_main, Criterion};
19+
use criterion::{Criterion, criterion_group, criterion_main};
2020
use hyperlight_common::flatbuffer_wrappers::function_types::{ParameterValue, ReturnType};
21+
use hyperlight_host::GuestBinary;
2122
use hyperlight_host::func::HostFunction2;
2223
use hyperlight_host::sandbox::{MultiUseSandbox, UninitializedSandbox};
2324
use hyperlight_host::sandbox_state::sandbox::EvolvableSandbox;
2425
use hyperlight_host::sandbox_state::transition::Noop;
25-
use hyperlight_host::GuestBinary;
2626
use hyperlight_testing::simple_guest_as_string;
2727

2828
fn create_uninit_sandbox() -> UninitializedSandbox {

Diff for: src/hyperlight_host/examples/func_ctx/main.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ use hyperlight_host::func::call_ctx::MultiUseGuestCallContext;
1919
use hyperlight_host::sandbox::{MultiUseSandbox, UninitializedSandbox};
2020
use hyperlight_host::sandbox_state::sandbox::EvolvableSandbox;
2121
use hyperlight_host::sandbox_state::transition::Noop;
22-
use hyperlight_host::{new_error, GuestBinary, Result};
22+
use hyperlight_host::{GuestBinary, Result, new_error};
2323
use hyperlight_testing::simple_guest_as_string;
2424

2525
fn main() {

Diff for: src/hyperlight_host/examples/guest-debugging/main.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,9 @@ use std::thread;
1919

2020
use hyperlight_common::flatbuffer_wrappers::function_types::{ParameterValue, ReturnType};
2121
use hyperlight_host::func::HostFunction0;
22+
use hyperlight_host::sandbox::SandboxConfiguration;
2223
#[cfg(gdb)]
2324
use hyperlight_host::sandbox::config::DebugInfo;
24-
use hyperlight_host::sandbox::SandboxConfiguration;
2525
use hyperlight_host::sandbox_state::sandbox::EvolvableSandbox;
2626
use hyperlight_host::sandbox_state::transition::Noop;
2727
use hyperlight_host::{MultiUseSandbox, UninitializedSandbox};
@@ -89,7 +89,7 @@ mod tests {
8989
use std::process::{Command, Stdio};
9090
use std::time::Duration;
9191

92-
use hyperlight_host::{new_error, Result};
92+
use hyperlight_host::{Result, new_error};
9393
use io::{BufReader, BufWriter, Read, Write};
9494

9595
use super::*;

Diff for: src/hyperlight_host/examples/metrics/main.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -16,13 +16,13 @@ limitations under the License.
1616

1717
extern crate hyperlight_host;
1818
use std::sync::{Arc, Mutex};
19-
use std::thread::{spawn, JoinHandle};
19+
use std::thread::{JoinHandle, spawn};
2020

2121
use hyperlight_common::flatbuffer_wrappers::function_types::{ParameterValue, ReturnType};
2222
use hyperlight_host::sandbox::uninitialized::UninitializedSandbox;
2323
use hyperlight_host::sandbox_state::sandbox::EvolvableSandbox;
2424
use hyperlight_host::sandbox_state::transition::Noop;
25-
use hyperlight_host::{set_metrics_registry, GuestBinary, MultiUseSandbox, Result};
25+
use hyperlight_host::{GuestBinary, MultiUseSandbox, Result, set_metrics_registry};
2626
use hyperlight_testing::simple_guest_as_string;
2727
use lazy_static::lazy_static;
2828
use prometheus::Registry;

0 commit comments

Comments
 (0)