Skip to content

Commit 1822d9a

Browse files
authored
set fmt style-edition to 2024 (#571)
Signed-off-by: Simon Davies <[email protected]>
1 parent abd4209 commit 1822d9a

Some content is hidden

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

77 files changed

+241
-227
lines changed

fuzz/fuzz_targets/host_print.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ use hyperlight_host::sandbox_state::sandbox::EvolvableSandbox;
77
use hyperlight_host::sandbox_state::transition::Noop;
88
use hyperlight_host::{MultiUseSandbox, UninitializedSandbox};
99
use hyperlight_testing::simple_guest_for_fuzzing_as_string;
10-
use libfuzzer_sys::{fuzz_target, Corpus};
10+
use libfuzzer_sys::{Corpus, fuzz_target};
1111

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

rustfmt.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,4 @@ group_imports = "StdExternalCrate" # create three groups for std, external and l
44
# Merge imports from the same module
55
# See: https://rust-lang.github.io/rustfmt/?version=v1.4.38&search=#imports_granularity
66
imports_granularity = "Module"
7-
style_edition = "2021"
7+
style_edition = "2024"

src/hyperlight_common/src/flatbuffer_wrappers/function_call.rs

Lines changed: 7 additions & 7 deletions
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.

src/hyperlight_common/src/flatbuffer_wrappers/function_types.rs

Lines changed: 6 additions & 6 deletions
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.

src/hyperlight_common/src/flatbuffer_wrappers/guest_error.rs

Lines changed: 1 addition & 1 deletion
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,

src/hyperlight_common/src/flatbuffer_wrappers/guest_log_data.rs

Lines changed: 2 additions & 2 deletions
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::{

src/hyperlight_common/src/flatbuffer_wrappers/guest_log_level.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,10 @@ 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
#[cfg(feature = "tracing")]
20-
use tracing::{instrument, Span};
20+
use tracing::{Span, instrument};
2121

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

src/hyperlight_common/src/flatbuffer_wrappers/util.rs

Lines changed: 6 additions & 6 deletions
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

src/hyperlight_common/src/outb.rs

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

1717
use core::convert::TryFrom;
1818

19-
use anyhow::{anyhow, Error};
19+
use anyhow::{Error, anyhow};
2020

2121
/// Exception codes for the x86 architecture.
2222
/// These are helpful to identify the type of exception that occurred

src/hyperlight_guest/src/exit.rs

Lines changed: 1 addition & 1 deletion
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, CStr};
18+
use core::ffi::{CStr, c_char};
1919

2020
use hyperlight_common::outb::OutBAction;
2121

src/hyperlight_guest_bin/src/exceptions/idt.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,9 @@ limitations under the License.
1717
use hyperlight_common::outb::Exception;
1818

1919
use crate::exceptions::interrupt_entry::{
20-
_do_excp0, _do_excp1, _do_excp10, _do_excp11, _do_excp12, _do_excp13, _do_excp14, _do_excp15,
21-
_do_excp16, _do_excp17, _do_excp18, _do_excp19, _do_excp2, _do_excp20, _do_excp3, _do_excp30,
22-
_do_excp4, _do_excp5, _do_excp6, _do_excp7, _do_excp8, _do_excp9,
20+
_do_excp0, _do_excp1, _do_excp2, _do_excp3, _do_excp4, _do_excp5, _do_excp6, _do_excp7,
21+
_do_excp8, _do_excp9, _do_excp10, _do_excp11, _do_excp12, _do_excp13, _do_excp14, _do_excp15,
22+
_do_excp16, _do_excp17, _do_excp18, _do_excp19, _do_excp20, _do_excp30,
2323
};
2424

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

src/hyperlight_guest_bin/src/exceptions/idtr.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ limitations under the License.
1717
use core::mem::size_of;
1818
use core::ptr::addr_of;
1919

20-
use crate::exceptions::idt::{init_idt, IdtEntry, IDT};
20+
use crate::exceptions::idt::{IDT, IdtEntry, init_idt};
2121

2222
#[repr(C, packed)]
2323
pub struct Idtr {

src/hyperlight_guest_bin/src/guest_err.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ See the License for the specific language governing permissions and
1414
limitations under the License.
1515
*/
1616

17-
use core::ffi::{c_char, CStr};
17+
use core::ffi::{CStr, c_char};
1818

1919
use hyperlight_common::flatbuffer_wrappers::guest_error::ErrorCode;
2020
use hyperlight_guest::exit::halt;

src/hyperlight_guest_bin/src/host_comm.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ 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
use core::mem;
2121

2222
use hyperlight_common::flatbuffer_wrappers::function_call::FunctionCall;

src/hyperlight_guest_capi/src/dispatch.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ limitations under the License.
1717
use alloc::boxed::Box;
1818
use alloc::slice;
1919
use alloc::vec::Vec;
20-
use core::ffi::{c_char, CStr};
20+
use core::ffi::{CStr, c_char};
2121
use core::mem;
2222

2323
use hyperlight_common::flatbuffer_wrappers::function_call::FunctionCall;

src/hyperlight_guest_capi/src/flatbuffer.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ limitations under the License.
1515
*/
1616

1717
use alloc::boxed::Box;
18-
use core::ffi::{c_char, CStr};
18+
use core::ffi::{CStr, c_char};
1919

2020
use hyperlight_common::flatbuffer_wrappers::util::get_flatbuffer_result;
2121
use hyperlight_guest_bin::host_comm::get_host_return_value;

src/hyperlight_guest_capi/src/types/function_call.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ use alloc::ffi::CString;
1919
use alloc::slice;
2020
use alloc::string::String;
2121
use alloc::vec::Vec;
22-
use core::ffi::{c_char, CStr};
22+
use core::ffi::{CStr, c_char};
2323

2424
use hyperlight_common::flatbuffer_wrappers::function_call::FunctionCall;
2525
use hyperlight_common::flatbuffer_wrappers::function_types::{ParameterValue, ReturnType};

src/hyperlight_guest_capi/src/types/parameter.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ limitations under the License.
1515
*/
1616

1717
use alloc::ffi::CString;
18-
use core::ffi::{c_char, CStr};
18+
use core::ffi::{CStr, c_char};
1919

2020
use hyperlight_common::flatbuffer_wrappers::function_types::{ParameterType, ParameterValue};
2121
use hyperlight_guest::error::Result;

src/hyperlight_host/benches/benchmarks.rs

Lines changed: 2 additions & 2 deletions
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 criterion::{criterion_group, criterion_main, Criterion};
17+
use criterion::{Criterion, criterion_group, criterion_main};
18+
use hyperlight_host::GuestBinary;
1819
use hyperlight_host::sandbox::{MultiUseSandbox, SandboxConfiguration, UninitializedSandbox};
1920
use hyperlight_host::sandbox_state::sandbox::EvolvableSandbox;
2021
use hyperlight_host::sandbox_state::transition::Noop;
21-
use hyperlight_host::GuestBinary;
2222
use hyperlight_testing::simple_guest_as_string;
2323

2424
fn create_uninit_sandbox() -> UninitializedSandbox {

src/hyperlight_host/examples/guest-debugging/main.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,9 @@ limitations under the License.
1616
#![allow(clippy::disallowed_macros)]
1717
use std::thread;
1818

19+
use hyperlight_host::sandbox::SandboxConfiguration;
1920
#[cfg(gdb)]
2021
use hyperlight_host::sandbox::config::DebugInfo;
21-
use hyperlight_host::sandbox::SandboxConfiguration;
2222
use hyperlight_host::sandbox_state::sandbox::EvolvableSandbox;
2323
use hyperlight_host::sandbox_state::transition::Noop;
2424
use hyperlight_host::{MultiUseSandbox, UninitializedSandbox};
@@ -79,7 +79,7 @@ mod tests {
7979
use std::process::{Command, Stdio};
8080
use std::time::Duration;
8181

82-
use hyperlight_host::{new_error, Result};
82+
use hyperlight_host::{Result, new_error};
8383
use io::{BufReader, BufWriter, Read, Write};
8484

8585
use super::*;

src/hyperlight_host/examples/metrics/main.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ limitations under the License.
1616
#![allow(clippy::disallowed_macros)]
1717
extern crate hyperlight_host;
1818
use std::sync::{Arc, Barrier};
19-
use std::thread::{spawn, JoinHandle};
19+
use std::thread::{JoinHandle, spawn};
2020

2121
use hyperlight_host::sandbox::uninitialized::UninitializedSandbox;
2222
use hyperlight_host::sandbox_state::sandbox::EvolvableSandbox;

src/hyperlight_host/examples/tracing-otlp/main.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,23 +16,23 @@ limitations under the License.
1616
#![allow(clippy::disallowed_macros)]
1717
//use opentelemetry_sdk::resource::ResourceBuilder;
1818
use opentelemetry_sdk::trace::SdkTracerProvider;
19-
use tracing::{span, Level};
19+
use tracing::{Level, span};
2020
use tracing_opentelemetry::OpenTelemetryLayer;
2121
use tracing_subscriber::layer::SubscriberExt;
2222
use tracing_subscriber::util::SubscriberInitExt;
2323
extern crate hyperlight_host;
2424
use std::error::Error;
2525
use std::io::stdin;
2626
use std::sync::{Arc, Barrier, Mutex};
27-
use std::thread::{spawn, JoinHandle};
27+
use std::thread::{JoinHandle, spawn};
2828

2929
use hyperlight_host::sandbox::uninitialized::UninitializedSandbox;
3030
use hyperlight_host::sandbox_state::sandbox::EvolvableSandbox;
3131
use hyperlight_host::sandbox_state::transition::Noop;
3232
use hyperlight_host::{GuestBinary, MultiUseSandbox, Result as HyperlightResult};
3333
use hyperlight_testing::simple_guest_as_string;
3434
use opentelemetry::trace::TracerProvider;
35-
use opentelemetry::{global, KeyValue};
35+
use opentelemetry::{KeyValue, global};
3636
use opentelemetry_otlp::{SpanExporter, WithExportConfig};
3737
//use opentelemetry_sdk::runtime::Tokio;
3838
use opentelemetry_sdk::Resource;

src/hyperlight_host/examples/tracing-tracy/main.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,8 @@ use hyperlight_host::sandbox_state::sandbox::EvolvableSandbox;
1919
use hyperlight_host::sandbox_state::transition::Noop;
2020
use hyperlight_host::{GuestBinary, MultiUseSandbox, Result};
2121
use hyperlight_testing::simple_guest_as_string;
22-
use tracing_subscriber::layer::SubscriberExt;
2322
use tracing_subscriber::EnvFilter;
23+
use tracing_subscriber::layer::SubscriberExt;
2424

2525
// An example of how to get tracy tracing working with hyperlight.
2626
// Run with:

src/hyperlight_host/examples/tracing/main.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,10 @@ See the License for the specific language governing permissions and
1414
limitations under the License.
1515
*/
1616
#![allow(clippy::disallowed_macros)]
17-
use tracing::{span, Level};
17+
use tracing::{Level, span};
1818
extern crate hyperlight_host;
1919
use std::sync::{Arc, Barrier};
20-
use std::thread::{spawn, JoinHandle};
20+
use std::thread::{JoinHandle, spawn};
2121

2222
use hyperlight_host::sandbox::uninitialized::UninitializedSandbox;
2323
use hyperlight_host::sandbox_state::sandbox::EvolvableSandbox;

src/hyperlight_host/src/func/call_ctx.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ See the License for the specific language governing permissions and
1414
limitations under the License.
1515
*/
1616

17-
use tracing::{instrument, Span};
17+
use tracing::{Span, instrument};
1818

1919
use super::{ParameterTuple, SupportedReturnType};
2020
use crate::{MultiUseSandbox, Result};

src/hyperlight_host/src/func/guest_err.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ use crate::error::HyperlightError::{GuestError, StackOverflow};
2020
use crate::mem::shared_mem::HostSharedMemory;
2121
use crate::metrics::{METRIC_GUEST_ERROR, METRIC_GUEST_ERROR_LABEL_CODE};
2222
use crate::sandbox::mem_mgr::MemMgrWrapper;
23-
use crate::{log_then_return, Result};
23+
use crate::{Result, log_then_return};
2424

2525
/// Check for a guest error and return an `Err` if one was found,
2626
/// and `Ok` if one was not found.

src/hyperlight_host/src/func/host_functions.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ use hyperlight_common::flatbuffer_wrappers::function_types::{ParameterValue, Ret
2121
use super::utils::for_each_tuple;
2222
use super::{ParameterTuple, ResultType, SupportedReturnType};
2323
use crate::sandbox::{ExtraAllowedSyscall, UninitializedSandbox};
24-
use crate::{log_then_return, new_error, Result};
24+
use crate::{Result, log_then_return, new_error};
2525

2626
/// A representation of a host function.
2727
/// This is a thin wrapper around a `Fn(Args) -> Result<Output>`.

src/hyperlight_host/src/func/param_type.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,11 +15,11 @@ limitations under the License.
1515
*/
1616

1717
use hyperlight_common::flatbuffer_wrappers::function_types::{ParameterType, ParameterValue};
18-
use tracing::{instrument, Span};
18+
use tracing::{Span, instrument};
1919

2020
use super::utils::for_each_tuple;
2121
use crate::HyperlightError::{ParameterValueConversionFailure, UnexpectedNoOfArguments};
22-
use crate::{log_then_return, Result};
22+
use crate::{Result, log_then_return};
2323

2424
/// This is a marker trait that is used to indicate that a type is a
2525
/// valid Hyperlight parameter type.

src/hyperlight_host/src/func/ret_type.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,10 @@ limitations under the License.
1515
*/
1616

1717
use hyperlight_common::flatbuffer_wrappers::function_types::{ReturnType, ReturnValue};
18-
use tracing::{instrument, Span};
18+
use tracing::{Span, instrument};
1919

2020
use crate::HyperlightError::ReturnValueConversionFailure;
21-
use crate::{log_then_return, Result};
21+
use crate::{Result, log_then_return};
2222

2323
/// This is a marker trait that is used to indicate that a type is a valid Hyperlight return type.
2424
pub trait SupportedReturnType: Sized + Clone + Send + Sync + 'static {

src/hyperlight_host/src/hypervisor/crashdump.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ use std::io::Write;
1919
use tempfile::NamedTempFile;
2020

2121
use super::Hypervisor;
22-
use crate::{new_error, Result};
22+
use crate::{Result, new_error};
2323

2424
/// Dump registers + memory regions + raw memory to a tempfile
2525
#[cfg(crashdump)]

src/hyperlight_host/src/hypervisor/gdb/event_loop.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,9 @@ limitations under the License.
1717
use gdbstub::common::Signal;
1818
use gdbstub::conn::ConnectionExt;
1919
use gdbstub::stub::{
20-
run_blocking, BaseStopReason, DisconnectReason, GdbStub, SingleThreadStopReason,
20+
BaseStopReason, DisconnectReason, GdbStub, SingleThreadStopReason, run_blocking,
2121
};
22-
use libc::{pthread_kill, SIGRTMIN};
22+
use libc::{SIGRTMIN, pthread_kill};
2323

2424
use super::x86_64_target::HyperlightSandboxTarget;
2525
use super::{DebugResponse, GdbTargetError, VcpuStopReason};

0 commit comments

Comments
 (0)