Skip to content

Commit 94df68a

Browse files
committed
fix: apply clippy fixes
Signed-off-by: Tomasz Andrzejak <andreiltd@gmail.com>
1 parent 2fbc721 commit 94df68a

2 files changed

Lines changed: 2 additions & 3 deletions

File tree

src/hyperlight_guest_bin/build.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -212,7 +212,6 @@ fn cc_build(picolibc_dir: &PathBuf, target: &str) -> Result<cc::Build> {
212212
.flag("-Werror=double-promotion")
213213
.flag("-Werror=implicit-function-declaration")
214214
.flag("-Werror=unreachable-code-fallthrough")
215-
.flag("-Wmissing-prototypes")
216215
.flag("-Wmissing-declarations")
217216
.flag("-Wold-style-definition")
218217
.flag("-Wno-implicit-int")

src/hyperlight_guest_bin/src/host_bridge.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,14 +47,14 @@ static CURRENT_TIME: AtomicU64 = AtomicU64::new(0);
4747

4848
/// Matches picolibc `struct timespec` layout for x86_64.
4949
#[repr(C)]
50-
struct Timespec {
50+
pub(crate) struct Timespec {
5151
tv_sec: c_long,
5252
tv_nsec: c_long,
5353
}
5454

5555
/// Matches picolibc `struct timeval` layout for x86_64.
5656
#[repr(C)]
57-
struct Timeval {
57+
pub(crate) struct Timeval {
5858
tv_sec: c_long,
5959
tv_usec: c_long,
6060
}

0 commit comments

Comments
 (0)