Skip to content

Commit ad74c31

Browse files
committed
Update hyperlight-common to 2024 edition
Signed-off-by: Ludvig Liljenberg <[email protected]>
1 parent 55dc43e commit ad74c31

File tree

2 files changed

+3
-6
lines changed

2 files changed

+3
-6
lines changed

src/hyperlight_common/src/flatbuffer_wrappers/host_function_details.rs

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -57,11 +57,8 @@ impl HostFunctionDetails {
5757
/// Sort the host functions by name.
5858
#[cfg_attr(feature = "tracing", instrument(skip_all, parent = Span::current(), level= "Trace"))]
5959
pub fn sort_host_functions_by_name(&mut self) {
60-
match &mut self.host_functions {
61-
Some(host_functions) => {
62-
host_functions.sort_by(|a, b| a.function_name.cmp(&b.function_name))
63-
}
64-
None => {}
60+
if let Some(host_functions) = &mut self.host_functions {
61+
host_functions.sort_by(|a, b| a.function_name.cmp(&b.function_name))
6562
}
6663
}
6764

src/hyperlight_common/src/flatbuffer_wrappers/util.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ pub trait FlatbufferSerializable {
4545
fn serialize(&self, builder: &mut FlatBufferBuilder) -> FbFunctionCallResultArgs;
4646
}
4747

48-
/// Implementations for basic types below
48+
// Implementations for basic types below
4949

5050
impl FlatbufferSerializable for () {
5151
fn serialize(&self, builder: &mut FlatBufferBuilder) -> FbFunctionCallResultArgs {

0 commit comments

Comments
 (0)