@@ -955,7 +955,7 @@ pub unsafe fn fd_filestat_set_times(
955
955
/// ## Return
956
956
///
957
957
/// * `nread` - The number of bytes read.
958
- pub unsafe fn fd_pread ( fd : Fd , iovs : IovecArray , offset : Filesize ) -> Result < Size > {
958
+ pub unsafe fn fd_pread ( fd : Fd , iovs : IovecArray < ' _ > , offset : Filesize ) -> Result < Size > {
959
959
let mut nread = MaybeUninit :: uninit ( ) ;
960
960
let rc =
961
961
wasi_snapshot_preview1:: fd_pread ( fd, iovs. as_ptr ( ) , iovs. len ( ) , offset, nread. as_mut_ptr ( ) ) ;
@@ -1006,7 +1006,7 @@ pub unsafe fn fd_prestat_dir_name(fd: Fd, path: *mut u8, path_len: Size) -> Resu
1006
1006
/// ## Return
1007
1007
///
1008
1008
/// * `nwritten` - The number of bytes written.
1009
- pub unsafe fn fd_pwrite ( fd : Fd , iovs : CiovecArray , offset : Filesize ) -> Result < Size > {
1009
+ pub unsafe fn fd_pwrite ( fd : Fd , iovs : CiovecArray < ' _ > , offset : Filesize ) -> Result < Size > {
1010
1010
let mut nwritten = MaybeUninit :: uninit ( ) ;
1011
1011
let rc = wasi_snapshot_preview1:: fd_pwrite (
1012
1012
fd,
@@ -1032,7 +1032,7 @@ pub unsafe fn fd_pwrite(fd: Fd, iovs: CiovecArray, offset: Filesize) -> Result<S
1032
1032
/// ## Return
1033
1033
///
1034
1034
/// * `nread` - The number of bytes read.
1035
- pub unsafe fn fd_read ( fd : Fd , iovs : IovecArray ) -> Result < Size > {
1035
+ pub unsafe fn fd_read ( fd : Fd , iovs : IovecArray < ' _ > ) -> Result < Size > {
1036
1036
let mut nread = MaybeUninit :: uninit ( ) ;
1037
1037
let rc = wasi_snapshot_preview1:: fd_read ( fd, iovs. as_ptr ( ) , iovs. len ( ) , nread. as_mut_ptr ( ) ) ;
1038
1038
if let Some ( err) = Error :: from_raw_error ( rc) {
@@ -1149,7 +1149,7 @@ pub unsafe fn fd_tell(fd: Fd) -> Result<Filesize> {
1149
1149
/// ## Return
1150
1150
///
1151
1151
/// * `nwritten` - The number of bytes written.
1152
- pub unsafe fn fd_write ( fd : Fd , iovs : CiovecArray ) -> Result < Size > {
1152
+ pub unsafe fn fd_write ( fd : Fd , iovs : CiovecArray < ' _ > ) -> Result < Size > {
1153
1153
let mut nwritten = MaybeUninit :: uninit ( ) ;
1154
1154
let rc = wasi_snapshot_preview1:: fd_write ( fd, iovs. as_ptr ( ) , iovs. len ( ) , nwritten. as_mut_ptr ( ) ) ;
1155
1155
if let Some ( err) = Error :: from_raw_error ( rc) {
@@ -1520,7 +1520,11 @@ pub unsafe fn random_get(buf: *mut u8, buf_len: Size) -> Result<()> {
1520
1520
///
1521
1521
/// * `ro_datalen` - Number of bytes stored in ri_data.
1522
1522
/// * `ro_flags` - Message flags.
1523
- pub unsafe fn sock_recv ( fd : Fd , ri_data : IovecArray , ri_flags : Riflags ) -> Result < ( Size , Roflags ) > {
1523
+ pub unsafe fn sock_recv (
1524
+ fd : Fd ,
1525
+ ri_data : IovecArray < ' _ > ,
1526
+ ri_flags : Riflags ,
1527
+ ) -> Result < ( Size , Roflags ) > {
1524
1528
let mut ro_datalen = MaybeUninit :: uninit ( ) ;
1525
1529
let mut ro_flags = MaybeUninit :: uninit ( ) ;
1526
1530
let rc = wasi_snapshot_preview1:: sock_recv (
@@ -1550,7 +1554,7 @@ pub unsafe fn sock_recv(fd: Fd, ri_data: IovecArray, ri_flags: Riflags) -> Resul
1550
1554
/// ## Return
1551
1555
///
1552
1556
/// * `so_datalen` - Number of bytes transmitted.
1553
- pub unsafe fn sock_send ( fd : Fd , si_data : CiovecArray , si_flags : Siflags ) -> Result < Size > {
1557
+ pub unsafe fn sock_send ( fd : Fd , si_data : CiovecArray < ' _ > , si_flags : Siflags ) -> Result < Size > {
1554
1558
let mut so_datalen = MaybeUninit :: uninit ( ) ;
1555
1559
let rc = wasi_snapshot_preview1:: sock_send (
1556
1560
fd,
0 commit comments