Skip to content

Commit d346b32

Browse files
committed
Fmt
Signed-off-by: Ludvig Liljenberg <[email protected]>
1 parent fc3b377 commit d346b32

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

src/hyperlight_common/src/flatbuffer_wrappers/function_types.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ use flatbuffers::size_prefixed_root;
2222
#[cfg(feature = "tracing")]
2323
use tracing::{Span, instrument};
2424

25+
use super::guest_error::GuestError;
2526
use crate::flatbuffers::hyperlight::generated::{
2627
FunctionCallResult as FbFunctionCallResult, FunctionCallResultArgs as FbFunctionCallResultArgs,
2728
FunctionCallResultType, Parameter, ParameterType as FbParameterType,
@@ -32,8 +33,6 @@ use crate::flatbuffers::hyperlight::generated::{
3233
hlvoid, hlvoidArgs,
3334
};
3435

35-
use super::guest_error::GuestError;
36-
3736
pub struct FunctionCallResult(core::result::Result<ReturnValue, GuestError>);
3837

3938
impl FunctionCallResult {

src/hyperlight_guest_capi/src/error.rs

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,14 +14,15 @@ See the License for the specific language governing permissions and
1414
limitations under the License.
1515
*/
1616

17-
use crate::alloc::borrow::ToOwned;
1817
use core::ffi::{CStr, c_char};
18+
1919
use flatbuffers::FlatBufferBuilder;
2020
use hyperlight_common::flatbuffer_wrappers::function_types::FunctionCallResult;
21-
use hyperlight_common::flatbuffer_wrappers::guest_error::ErrorCode;
22-
use hyperlight_common::flatbuffer_wrappers::guest_error::GuestError;
21+
use hyperlight_common::flatbuffer_wrappers::guest_error::{ErrorCode, GuestError};
2322
use hyperlight_guest_bin::GUEST_HANDLE;
2423

24+
use crate::alloc::borrow::ToOwned;
25+
2526
#[unsafe(no_mangle)]
2627
pub extern "C" fn hl_set_error(err: ErrorCode, message: *const c_char) {
2728
let cstr = unsafe { CStr::from_ptr(message) };

0 commit comments

Comments
 (0)