lucet-wiggle: fix tests
@@ -77,7 +77,7 @@ impl<'a> GuestErrorType<'a> for types::Errno {
/// Since this trait is huge, we don't actually implement very much of it.
/// This test harness only ends up calling the `args_sizes_get` method.
impl<'a> crate::wasi_snapshot_preview1::WasiSnapshotPreview1 for LucetWasiCtx<'a> {
- fn args_get(&self, _argv: GuestPtr<GuestPtr<u8>>, _argv_buf: GuestPtr<u8>) -> Result<()> {
+ fn args_get(&self, _argv: &GuestPtr<GuestPtr<u8>>, _argv_buf: &GuestPtr<u8>) -> Result<()> {
unimplemented!("args_get")
}
@@ -89,8 +89,8 @@ impl<'a> crate::wasi_snapshot_preview1::WasiSnapshotPreview1 for LucetWasiCtx<'a
fn environ_get(
&self,
- _environ: GuestPtr<GuestPtr<u8>>,
- _environ_buf: GuestPtr<u8>,
+ _environ: &GuestPtr<GuestPtr<u8>>,
+ _environ_buf: &GuestPtr<u8>,
) -> Result<()> {
unimplemented!("environ_get")
}
@@ -189,7 +189,7 @@ impl<'a> crate::wasi_snapshot_preview1::WasiSnapshotPreview1 for LucetWasiCtx<'a
fn fd_prestat_dir_name(
&self,
_fd: types::Fd,
- _path: GuestPtr<u8>,
+ _path: &GuestPtr<u8>,
_path_len: types::Size,
) -> Result<()> {
unimplemented!("fd_prestat_dir_name")
@@ -211,7 +211,7 @@ impl<'a> crate::wasi_snapshot_preview1::WasiSnapshotPreview1 for LucetWasiCtx<'a
fn fd_readdir(
&self,
_fd: types::Fd,
- _buf: GuestPtr<u8>,
+ _buf: &GuestPtr<u8>,
_buf_len: types::Size,
_cookie: types::Dircookie,
) -> Result<types::Size> {
@@ -296,7 +296,7 @@ impl<'a> crate::wasi_snapshot_preview1::WasiSnapshotPreview1 for LucetWasiCtx<'a
&self,
_fd: types::Fd,
_path: &GuestPtr<'_, str>,
- _buf: GuestPtr<u8>,
+ _buf: &GuestPtr<u8>,
_buf_len: types::Size,
) -> Result<types::Size> {
unimplemented!("path_readlink")
@@ -331,8 +331,8 @@ impl<'a> crate::wasi_snapshot_preview1::WasiSnapshotPreview1 for LucetWasiCtx<'a
fn poll_oneoff(
&self,
- _in_: GuestPtr<types::Subscription>,
- _out: GuestPtr<types::Event>,
+ _in_: &GuestPtr<types::Subscription>,
+ _out: &GuestPtr<types::Event>,
_nsubscriptions: types::Size,
) -> Result<types::Size> {
unimplemented!("poll_oneoff")
@@ -350,7 +350,7 @@ impl<'a> crate::wasi_snapshot_preview1::WasiSnapshotPreview1 for LucetWasiCtx<'a
unimplemented!("sched_yield")
}
- fn random_get(&self, _buf: GuestPtr<u8>, _buf_len: types::Size) -> Result<()> {
+ fn random_get(&self, _buf: &GuestPtr<u8>, _buf_len: types::Size) -> Result<()> {
unimplemented!("random_get")
}
