Compiling wasi-common v0.1.0 (/home/sunfish/wasi-common)
warning: long literal lacking separators
--> src/host.rs:154:64
|
154 | pub const __WASI_LOOKUP_SYMLINK_FOLLOW: __wasi_lookupflags_t = 0x00000001;
| ^^^^^^^^^^ help: consider: `0x0000_0001`
|
= note: #[warn(clippy::unreadable_literal)] on by default
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unreadable_literal
warning: long literal lacking separators
--> src/host.rs:167:55
|
167 | pub const __WASI_RIGHT_FD_DATASYNC: __wasi_rights_t = 0x0000000000000001;
| ^^^^^^^^^^^^^^^^^^ help: consider: `0x0000_0000_0000_0001`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unreadable_literal
warning: long literal lacking separators
--> src/host.rs:168:51
|
168 | pub const __WASI_RIGHT_FD_READ: __wasi_rights_t = 0x0000000000000002;
| ^^^^^^^^^^^^^^^^^^ help: consider: `0x0000_0000_0000_0002`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unreadable_literal
warning: long literal lacking separators
--> src/host.rs:169:51
|
169 | pub const __WASI_RIGHT_FD_SEEK: __wasi_rights_t = 0x0000000000000004;
| ^^^^^^^^^^^^^^^^^^ help: consider: `0x0000_0000_0000_0004`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unreadable_literal
warning: long literal lacking separators
--> src/host.rs:170:63
|
170 | pub const __WASI_RIGHT_FD_FDSTAT_SET_FLAGS: __wasi_rights_t = 0x0000000000000008;
| ^^^^^^^^^^^^^^^^^^ help: consider: `0x0000_0000_0000_0008`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unreadable_literal
warning: long literal lacking separators
--> src/host.rs:171:51
|
171 | pub const __WASI_RIGHT_FD_SYNC: __wasi_rights_t = 0x0000000000000010;
| ^^^^^^^^^^^^^^^^^^ help: consider: `0x0000_0000_0000_0010`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unreadable_literal
warning: long literal lacking separators
--> src/host.rs:172:51
|
172 | pub const __WASI_RIGHT_FD_TELL: __wasi_rights_t = 0x0000000000000020;
| ^^^^^^^^^^^^^^^^^^ help: consider: `0x0000_0000_0000_0020`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unreadable_literal
warning: long literal lacking separators
--> src/host.rs:173:52
|
173 | pub const __WASI_RIGHT_FD_WRITE: __wasi_rights_t = 0x0000000000000040;
| ^^^^^^^^^^^^^^^^^^ help: consider: `0x0000_0000_0000_0040`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unreadable_literal
warning: long literal lacking separators
--> src/host.rs:174:53
|
174 | pub const __WASI_RIGHT_FD_ADVISE: __wasi_rights_t = 0x0000000000000080;
| ^^^^^^^^^^^^^^^^^^ help: consider: `0x0000_0000_0000_0080`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unreadable_literal
warning: long literal lacking separators
--> src/host.rs:175:55
|
175 | pub const __WASI_RIGHT_FD_ALLOCATE: __wasi_rights_t = 0x0000000000000100;
| ^^^^^^^^^^^^^^^^^^ help: consider: `0x0000_0000_0000_0100`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unreadable_literal
warning: long literal lacking separators
--> src/host.rs:176:65
|
176 | pub const __WASI_RIGHT_PATH_CREATE_DIRECTORY: __wasi_rights_t = 0x0000000000000200;
| ^^^^^^^^^^^^^^^^^^ help: consider: `0x0000_0000_0000_0200`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unreadable_literal
warning: long literal lacking separators
--> src/host.rs:177:60
|
177 | pub const __WASI_RIGHT_PATH_CREATE_FILE: __wasi_rights_t = 0x0000000000000400;
| ^^^^^^^^^^^^^^^^^^ help: consider: `0x0000_0000_0000_0400`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unreadable_literal
warning: long literal lacking separators
--> src/host.rs:178:60
|
178 | pub const __WASI_RIGHT_PATH_LINK_SOURCE: __wasi_rights_t = 0x0000000000000800;
| ^^^^^^^^^^^^^^^^^^ help: consider: `0x0000_0000_0000_0800`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unreadable_literal
warning: long literal lacking separators
--> src/host.rs:179:60
|
179 | pub const __WASI_RIGHT_PATH_LINK_TARGET: __wasi_rights_t = 0x0000000000001000;
| ^^^^^^^^^^^^^^^^^^ help: consider: `0x0000_0000_0000_1000`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unreadable_literal
warning: long literal lacking separators
--> src/host.rs:180:53
|
180 | pub const __WASI_RIGHT_PATH_OPEN: __wasi_rights_t = 0x0000000000002000;
| ^^^^^^^^^^^^^^^^^^ help: consider: `0x0000_0000_0000_2000`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unreadable_literal
warning: long literal lacking separators
--> src/host.rs:181:54
|
181 | pub const __WASI_RIGHT_FD_READDIR: __wasi_rights_t = 0x0000000000004000;
| ^^^^^^^^^^^^^^^^^^ help: consider: `0x0000_0000_0000_4000`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unreadable_literal
warning: long literal lacking separators
--> src/host.rs:182:57
|
182 | pub const __WASI_RIGHT_PATH_READLINK: __wasi_rights_t = 0x0000000000008000;
| ^^^^^^^^^^^^^^^^^^ help: consider: `0x0000_0000_0000_8000`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unreadable_literal
warning: long literal lacking separators
--> src/host.rs:183:62
|
183 | pub const __WASI_RIGHT_PATH_RENAME_SOURCE: __wasi_rights_t = 0x0000000000010000;
| ^^^^^^^^^^^^^^^^^^ help: consider: `0x0000_0000_0001_0000`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unreadable_literal
warning: long literal lacking separators
--> src/host.rs:184:62
|
184 | pub const __WASI_RIGHT_PATH_RENAME_TARGET: __wasi_rights_t = 0x0000000000020000;
| ^^^^^^^^^^^^^^^^^^ help: consider: `0x0000_0000_0002_0000`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unreadable_literal
warning: long literal lacking separators
--> src/host.rs:185:61
|
185 | pub const __WASI_RIGHT_PATH_FILESTAT_GET: __wasi_rights_t = 0x0000000000040000;
| ^^^^^^^^^^^^^^^^^^ help: consider: `0x0000_0000_0004_0000`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unreadable_literal
warning: long literal lacking separators
--> src/host.rs:186:66
|
186 | pub const __WASI_RIGHT_PATH_FILESTAT_SET_SIZE: __wasi_rights_t = 0x0000000000080000;
| ^^^^^^^^^^^^^^^^^^ help: consider: `0x0000_0000_0008_0000`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unreadable_literal
warning: long literal lacking separators
--> src/host.rs:187:67
|
187 | pub const __WASI_RIGHT_PATH_FILESTAT_SET_TIMES: __wasi_rights_t = 0x0000000000100000;
| ^^^^^^^^^^^^^^^^^^ help: consider: `0x0000_0000_0010_0000`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unreadable_literal
warning: long literal lacking separators
--> src/host.rs:188:59
|
188 | pub const __WASI_RIGHT_FD_FILESTAT_GET: __wasi_rights_t = 0x0000000000200000;
| ^^^^^^^^^^^^^^^^^^ help: consider: `0x0000_0000_0020_0000`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unreadable_literal
warning: long literal lacking separators
--> src/host.rs:189:64
|
189 | pub const __WASI_RIGHT_FD_FILESTAT_SET_SIZE: __wasi_rights_t = 0x0000000000400000;
| ^^^^^^^^^^^^^^^^^^ help: consider: `0x0000_0000_0040_0000`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unreadable_literal
warning: long literal lacking separators
--> src/host.rs:190:65
|
190 | pub const __WASI_RIGHT_FD_FILESTAT_SET_TIMES: __wasi_rights_t = 0x0000000000800000;
| ^^^^^^^^^^^^^^^^^^ help: consider: `0x0000_0000_0080_0000`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unreadable_literal
warning: long literal lacking separators
--> src/host.rs:191:56
|
191 | pub const __WASI_RIGHT_PATH_SYMLINK: __wasi_rights_t = 0x0000000001000000;
| ^^^^^^^^^^^^^^^^^^ help: consider: `0x0000_0000_0100_0000`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unreadable_literal
warning: long literal lacking separators
--> src/host.rs:192:65
|
192 | pub const __WASI_RIGHT_PATH_REMOVE_DIRECTORY: __wasi_rights_t = 0x0000000002000000;
| ^^^^^^^^^^^^^^^^^^ help: consider: `0x0000_0000_0200_0000`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unreadable_literal
warning: long literal lacking separators
--> src/host.rs:193:60
|
193 | pub const __WASI_RIGHT_PATH_UNLINK_FILE: __wasi_rights_t = 0x0000000004000000;
| ^^^^^^^^^^^^^^^^^^ help: consider: `0x0000_0000_0400_0000`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unreadable_literal
warning: long literal lacking separators
--> src/host.rs:194:61
|
194 | pub const __WASI_RIGHT_POLL_FD_READWRITE: __wasi_rights_t = 0x0000000008000000;
| ^^^^^^^^^^^^^^^^^^ help: consider: `0x0000_0000_0800_0000`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unreadable_literal
warning: long literal lacking separators
--> src/host.rs:195:57
|
195 | pub const __WASI_RIGHT_SOCK_SHUTDOWN: __wasi_rights_t = 0x0000000010000000;
| ^^^^^^^^^^^^^^^^^^ help: consider: `0x0000_0000_1000_0000`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unreadable_literal
warning: unneeded unit return type
--> src/hostcalls/misc.rs:10:51
|
10 | pub fn proc_exit(rval: wasm32::__wasi_exitcode_t) -> () {
| ^^^^^ help: remove the `-> ()`
|
= note: #[warn(clippy::unused_unit)] on by default
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unused_unit
warning: long literal lacking separators
--> src/wasm32.rs:375:29
|
375 | pub const INT32_MIN: i32 = -2147483648;
| ^^^^^^^^^^ help: consider: `2_147_483_648`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unreadable_literal
warning: long literal lacking separators
--> src/wasm32.rs:378:28
|
378 | pub const INT32_MAX: u32 = 2147483647;
| ^^^^^^^^^^ help: consider: `2_147_483_647`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unreadable_literal
warning: long literal lacking separators
--> src/wasm32.rs:381:29
|
381 | pub const UINT32_MAX: u32 = 4294967295;
| ^^^^^^^^^^ help: consider: `4_294_967_295`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unreadable_literal
warning: long literal lacking separators
--> src/wasm32.rs:384:35
|
384 | pub const INT_LEAST32_MIN: i32 = -2147483648;
| ^^^^^^^^^^ help: consider: `2_147_483_648`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unreadable_literal
warning: long literal lacking separators
--> src/wasm32.rs:387:34
|
387 | pub const INT_LEAST32_MAX: u32 = 2147483647;
| ^^^^^^^^^^ help: consider: `2_147_483_647`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unreadable_literal
warning: long literal lacking separators
--> src/wasm32.rs:390:35
|
390 | pub const UINT_LEAST32_MAX: u32 = 4294967295;
| ^^^^^^^^^^ help: consider: `4_294_967_295`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unreadable_literal
warning: long literal lacking separators
--> src/wasm32.rs:392:34
|
392 | pub const INT_FAST16_MIN: i32 = -2147483648;
| ^^^^^^^^^^ help: consider: `2_147_483_648`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unreadable_literal
warning: long literal lacking separators
--> src/wasm32.rs:393:34
|
393 | pub const INT_FAST32_MIN: i32 = -2147483648;
| ^^^^^^^^^^ help: consider: `2_147_483_648`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unreadable_literal
warning: long literal lacking separators
--> src/wasm32.rs:395:33
|
395 | pub const INT_FAST16_MAX: u32 = 2147483647;
| ^^^^^^^^^^ help: consider: `2_147_483_647`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unreadable_literal
warning: long literal lacking separators
--> src/wasm32.rs:396:33
|
396 | pub const INT_FAST32_MAX: u32 = 2147483647;
| ^^^^^^^^^^ help: consider: `2_147_483_647`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unreadable_literal
warning: long literal lacking separators
--> src/wasm32.rs:398:34
|
398 | pub const UINT_FAST16_MAX: u32 = 4294967295;
| ^^^^^^^^^^ help: consider: `4_294_967_295`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unreadable_literal
warning: long literal lacking separators
--> src/wasm32.rs:399:34
|
399 | pub const UINT_FAST32_MAX: u32 = 4294967295;
| ^^^^^^^^^^ help: consider: `4_294_967_295`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unreadable_literal
warning: long literal lacking separators
--> src/wasm32.rs:400:30
|
400 | pub const INTPTR_MIN: i32 = -2147483648;
| ^^^^^^^^^^ help: consider: `2_147_483_648`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unreadable_literal
warning: long literal lacking separators
--> src/wasm32.rs:401:29
|
401 | pub const INTPTR_MAX: u32 = 2147483647;
| ^^^^^^^^^^ help: consider: `2_147_483_647`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unreadable_literal
warning: long literal lacking separators
--> src/wasm32.rs:402:30
|
402 | pub const UINTPTR_MAX: u32 = 4294967295;
| ^^^^^^^^^^ help: consider: `4_294_967_295`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unreadable_literal
warning: long literal lacking separators
--> src/wasm32.rs:403:31
|
403 | pub const PTRDIFF_MIN: i32 = -2147483648;
| ^^^^^^^^^^ help: consider: `2_147_483_648`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unreadable_literal
warning: long literal lacking separators
--> src/wasm32.rs:404:30
|
404 | pub const PTRDIFF_MAX: u32 = 2147483647;
| ^^^^^^^^^^ help: consider: `2_147_483_647`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unreadable_literal
warning: long literal lacking separators
--> src/wasm32.rs:405:34
|
405 | pub const SIG_ATOMIC_MIN: i32 = -2147483648;
| ^^^^^^^^^^ help: consider: `2_147_483_648`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unreadable_literal
warning: long literal lacking separators
--> src/wasm32.rs:406:33
|
406 | pub const SIG_ATOMIC_MAX: u32 = 2147483647;
| ^^^^^^^^^^ help: consider: `2_147_483_647`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unreadable_literal
warning: long literal lacking separators
--> src/wasm32.rs:407:27
|
407 | pub const SIZE_MAX: u32 = 4294967295;
| ^^^^^^^^^^ help: consider: `4_294_967_295`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unreadable_literal
warning: long literal lacking separators
--> src/wasm32.rs:408:28
|
408 | pub const WINT_MIN: i32 = -2147483648;
| ^^^^^^^^^^ help: consider: `2_147_483_648`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unreadable_literal
warning: long literal lacking separators
--> src/wasm32.rs:409:27
|
409 | pub const WINT_MAX: i32 = 2147483647;
| ^^^^^^^^^^ help: consider: `2_147_483_647`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unreadable_literal
warning: long literal lacking separators
--> src/wasm32.rs:546:62
|
546 | pub const __WASI_RIGHT_PATH_RENAME_TARGET: __wasi_rights_t = 131072;
| ^^^^^^ help: consider: `131_072`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unreadable_literal
warning: long literal lacking separators
--> src/wasm32.rs:547:61
|
547 | pub const __WASI_RIGHT_PATH_FILESTAT_GET: __wasi_rights_t = 262144;
| ^^^^^^ help: consider: `262_144`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unreadable_literal
warning: long literal lacking separators
--> src/wasm32.rs:548:66
|
548 | pub const __WASI_RIGHT_PATH_FILESTAT_SET_SIZE: __wasi_rights_t = 524288;
| ^^^^^^ help: consider: `524_288`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unreadable_literal
warning: long literal lacking separators
--> src/wasm32.rs:549:67
|
549 | pub const __WASI_RIGHT_PATH_FILESTAT_SET_TIMES: __wasi_rights_t = 1048576;
| ^^^^^^^ help: consider: `1_048_576`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unreadable_literal
warning: long literal lacking separators
--> src/wasm32.rs:550:59
|
550 | pub const __WASI_RIGHT_FD_FILESTAT_GET: __wasi_rights_t = 2097152;
| ^^^^^^^ help: consider: `2_097_152`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unreadable_literal
warning: long literal lacking separators
--> src/wasm32.rs:551:64
|
551 | pub const __WASI_RIGHT_FD_FILESTAT_SET_SIZE: __wasi_rights_t = 4194304;
| ^^^^^^^ help: consider: `4_194_304`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unreadable_literal
warning: long literal lacking separators
--> src/wasm32.rs:552:65
|
552 | pub const __WASI_RIGHT_FD_FILESTAT_SET_TIMES: __wasi_rights_t = 8388608;
| ^^^^^^^ help: consider: `8_388_608`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unreadable_literal
warning: long literal lacking separators
--> src/wasm32.rs:553:56
|
553 | pub const __WASI_RIGHT_PATH_SYMLINK: __wasi_rights_t = 16777216;
| ^^^^^^^^ help: consider: `16_777_216`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unreadable_literal
warning: long literal lacking separators
--> src/wasm32.rs:554:65
|
554 | pub const __WASI_RIGHT_PATH_REMOVE_DIRECTORY: __wasi_rights_t = 33554432;
| ^^^^^^^^ help: consider: `33_554_432`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unreadable_literal
warning: long literal lacking separators
--> src/wasm32.rs:555:60
|
555 | pub const __WASI_RIGHT_PATH_UNLINK_FILE: __wasi_rights_t = 67108864;
| ^^^^^^^^ help: consider: `67_108_864`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unreadable_literal
warning: long literal lacking separators
--> src/wasm32.rs:556:61
|
556 | pub const __WASI_RIGHT_POLL_FD_READWRITE: __wasi_rights_t = 134217728;
| ^^^^^^^^^ help: consider: `134_217_728`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unreadable_literal
warning: long literal lacking separators
--> src/wasm32.rs:557:57
|
557 | pub const __WASI_RIGHT_SOCK_SHUTDOWN: __wasi_rights_t = 268435456;
| ^^^^^^^^^ help: consider: `268_435_456`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unreadable_literal
warning: use of deprecated item 'std::mem::uninitialized': use `mem::MaybeUninit` instead
--> src/sys/unix/hostcalls_impl/fs.rs:227:34
|
227 | let mut entry_buf = unsafe { std::mem::uninitialized::<dirent>() };
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= note: #[warn(deprecated)] on by default
warning: use of deprecated item 'std::mem::uninitialized': use `mem::MaybeUninit` instead
--> src/sys/unix/hostcalls_impl/fs.rs:400:37
|
400 | let mut timespec = unsafe { std::mem::uninitialized::<libc::timespec>() };
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
warning: use of deprecated item 'std::mem::uninitialized': use `mem::MaybeUninit` instead
--> src/sys/unix/hostcalls_impl/misc.rs:22:33
|
22 | let mut timespec = unsafe { std::mem::uninitialized::<libc::timespec>() };
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
warning: use of deprecated item 'std::mem::uninitialized': use `mem::MaybeUninit` instead
--> src/sys/unix/hostcalls_impl/misc.rs:56:33
|
56 | let mut timespec = unsafe { std::mem::uninitialized::<libc::timespec>() };
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
warning: this function has too many arguments (9/7)
--> src/hostcalls_impl/fs.rs:485:1
|
485 | / pub(crate) fn path_link(
486 | | wasi_ctx: &WasiCtx,
487 | | memory: &mut [u8],
488 | | old_dirfd: wasm32::__wasi_fd_t,
... |
494 | | new_path_len: wasm32::size_t,
495 | | ) -> Result<()> {
| |_______________^
|
= note: #[warn(clippy::too_many_arguments)] on by default
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#too_many_arguments
warning: this function has too many arguments (11/7)
--> src/hostcalls_impl/fs.rs:529:1
|
529 | / pub(crate) fn path_open(
530 | | wasi_ctx: &mut WasiCtx,
531 | | memory: &mut [u8],
532 | | dirfd: wasm32::__wasi_fd_t,
... |
540 | | fd_out_ptr: wasm32::uintptr_t,
541 | | ) -> Result<()> {
| |_______________^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#too_many_arguments
warning: this function has too many arguments (8/7)
--> src/hostcalls_impl/fs.rs:637:1
|
637 | / pub(crate) fn path_readlink(
638 | | wasi_ctx: &WasiCtx,
639 | | memory: &mut [u8],
640 | | dirfd: wasm32::__wasi_fd_t,
... |
645 | | buf_used: wasm32::uintptr_t,
646 | | ) -> Result<()> {
| |_______________^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#too_many_arguments
warning: this function has too many arguments (8/7)
--> src/hostcalls_impl/fs.rs:679:1
|
679 | / pub(crate) fn path_rename(
680 | | wasi_ctx: &WasiCtx,
681 | | memory: &mut [u8],
682 | | old_dirfd: wasm32::__wasi_fd_t,
... |
687 | | new_path_len: wasm32::size_t,
688 | | ) -> Result<()> {
| |_______________^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#too_many_arguments
warning: this function has too many arguments (9/7)
--> src/hostcalls_impl/fs.rs:854:1
|
854 | / pub(crate) fn path_filestat_set_times(
855 | | wasi_ctx: &WasiCtx,
856 | | memory: &mut [u8],
857 | | dirfd: wasm32::__wasi_fd_t,
... |
863 | | fst_flags: wasm32::__wasi_fstflags_t,
864 | | ) -> Result<()> {
| |_______________^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#too_many_arguments
warning: casting u32 to u64 may become silently lossy if you later change the type
--> src/hostcalls_impl/misc.rs:204:8
|
204 | if nsubscriptions as u64 > wasm32::__wasi_filesize_t::max_value() {
| ^^^^^^^^^^^^^^^^^^^^^ help: try: `u64::from(nsubscriptions)`
|
= note: #[warn(clippy::cast_lossless)] on by default
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#cast_lossless
warning: in an 'if' condition, avoid complex blocks or closures with blocks; instead, move the block or closure higher and bind it with a 'let'
--> src/sys/unix/fdentry_impl.rs:65:66
|
65 | if nix::unistd::isatty(fd.as_raw_fd()).map_err(|err| {
| __________________________________________________________________^
66 | | err.as_errno()
67 | | .map_or(host::__WASI_EIO, |e| errno_from_host(e as i32))
68 | | })? {
| |_____________^
|
= note: #[warn(clippy::block_in_if_condition_stmt)] on by default
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#block_in_if_condition_stmt
warning: redundant closure found
--> src/sys/unix/hostcalls_impl/misc.rs:67:46
|
67 | .map_or(Err(host::__WASI_EOVERFLOW), |time| Ok(time))
| ^^^^^^^^^^^^^^^ help: remove closure as shown: `Ok`
|
= note: #[warn(clippy::redundant_closure)] on by default
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_closure
warning: explicit lifetimes given in parameter types where they could be elided (or replaced with `'_` if needed by type declaration)
--> src/host.rs:478:1
|
478 | / pub unsafe fn ciovec_to_host<'a>(ciovec: &'a __wasi_ciovec_t) -> io::IoSlice<'a> {
479 | | let slice = slice::from_raw_parts(ciovec.buf as *const u8, ciovec.buf_len);
480 | | io::IoSlice::new(slice)
481 | | }
| |_^
|
= note: #[warn(clippy::needless_lifetimes)] on by default
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes
warning: explicit lifetimes given in parameter types where they could be elided (or replaced with `'_` if needed by type declaration)
--> src/host.rs:483:1
|
483 | / pub unsafe fn ciovec_to_host_mut<'a>(ciovec: &'a mut __wasi_ciovec_t) -> io::IoSliceMut<'a> {
484 | | let slice = slice::from_raw_parts_mut(ciovec.buf as *mut u8, ciovec.buf_len);
485 | | io::IoSliceMut::new(slice)
486 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes
warning: explicit lifetimes given in parameter types where they could be elided (or replaced with `'_` if needed by type declaration)
--> src/host.rs:488:1
|
488 | / pub unsafe fn iovec_to_host<'a>(iovec: &'a __wasi_iovec_t) -> io::IoSlice<'a> {
489 | | let slice = slice::from_raw_parts(iovec.buf as *const u8, iovec.buf_len);
490 | | io::IoSlice::new(slice)
491 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes
warning: explicit lifetimes given in parameter types where they could be elided (or replaced with `'_` if needed by type declaration)
--> src/host.rs:493:1
|
493 | / pub unsafe fn iovec_to_host_mut<'a>(iovec: &'a mut __wasi_iovec_t) -> io::IoSliceMut<'a> {
494 | | let slice = slice::from_raw_parts_mut(iovec.buf as *mut u8, iovec.buf_len);
495 | | io::IoSliceMut::new(slice)
496 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes
warning: The function/method `fd_datasync` doesn't need a mutable reference
--> src/macros.rs:3:13
|
3 | #[wasi_common_cbindgen::wasi_common_cbindgen]
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
::: src/hostcalls/fs.rs:5:1
|
5 | / hostcalls! {
6 | | pub fn fd_close(wasi_ctx: &mut WasiCtx, fd: wasm32::__wasi_fd_t,) -> wasm32::__wasi_errno_t;
7 | |
8 | | pub fn fd_datasync(wasi_ctx: &WasiCtx, fd: wasm32::__wasi_fd_t,) -> wasm32::__wasi_errno_t;
... |
255 | | ) -> wasm32::__wasi_errno_t;
256 | | }
| |_- in this macro invocation
|
= note: #[warn(clippy::unnecessary_mut_passed)] on by default
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_mut_passed
warning: The function/method `fd_pread` doesn't need a mutable reference
--> src/macros.rs:3:13
|
3 | #[wasi_common_cbindgen::wasi_common_cbindgen]
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
::: src/hostcalls/fs.rs:5:1
|
5 | / hostcalls! {
6 | | pub fn fd_close(wasi_ctx: &mut WasiCtx, fd: wasm32::__wasi_fd_t,) -> wasm32::__wasi_errno_t;
7 | |
8 | | pub fn fd_datasync(wasi_ctx: &WasiCtx, fd: wasm32::__wasi_fd_t,) -> wasm32::__wasi_errno_t;
... |
255 | | ) -> wasm32::__wasi_errno_t;
256 | | }
| |_- in this macro invocation
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_mut_passed
warning: The function/method `fd_pwrite` doesn't need a mutable reference
--> src/macros.rs:3:13
|
3 | #[wasi_common_cbindgen::wasi_common_cbindgen]
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
::: src/hostcalls/fs.rs:5:1
|
5 | / hostcalls! {
6 | | pub fn fd_close(wasi_ctx: &mut WasiCtx, fd: wasm32::__wasi_fd_t,) -> wasm32::__wasi_errno_t;
7 | |
8 | | pub fn fd_datasync(wasi_ctx: &WasiCtx, fd: wasm32::__wasi_fd_t,) -> wasm32::__wasi_errno_t;
... |
255 | | ) -> wasm32::__wasi_errno_t;
256 | | }
| |_- in this macro invocation
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_mut_passed
warning: The function/method `fd_seek` doesn't need a mutable reference
--> src/macros.rs:3:13
|
3 | #[wasi_common_cbindgen::wasi_common_cbindgen]
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
::: src/hostcalls/fs.rs:5:1
|
5 | / hostcalls! {
6 | | pub fn fd_close(wasi_ctx: &mut WasiCtx, fd: wasm32::__wasi_fd_t,) -> wasm32::__wasi_errno_t;
7 | |
8 | | pub fn fd_datasync(wasi_ctx: &WasiCtx, fd: wasm32::__wasi_fd_t,) -> wasm32::__wasi_errno_t;
... |
255 | | ) -> wasm32::__wasi_errno_t;
256 | | }
| |_- in this macro invocation
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_mut_passed
warning: The function/method `fd_tell` doesn't need a mutable reference
--> src/macros.rs:3:13
|
3 | #[wasi_common_cbindgen::wasi_common_cbindgen]
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
::: src/hostcalls/fs.rs:5:1
|
5 | / hostcalls! {
6 | | pub fn fd_close(wasi_ctx: &mut WasiCtx, fd: wasm32::__wasi_fd_t,) -> wasm32::__wasi_errno_t;
7 | |
8 | | pub fn fd_datasync(wasi_ctx: &WasiCtx, fd: wasm32::__wasi_fd_t,) -> wasm32::__wasi_errno_t;
... |
255 | | ) -> wasm32::__wasi_errno_t;
256 | | }
| |_- in this macro invocation
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_mut_passed
warning: The function/method `fd_fdstat_get` doesn't need a mutable reference
--> src/macros.rs:3:13
|
3 | #[wasi_common_cbindgen::wasi_common_cbindgen]
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
::: src/hostcalls/fs.rs:5:1
|
5 | / hostcalls! {
6 | | pub fn fd_close(wasi_ctx: &mut WasiCtx, fd: wasm32::__wasi_fd_t,) -> wasm32::__wasi_errno_t;
7 | |
8 | | pub fn fd_datasync(wasi_ctx: &WasiCtx, fd: wasm32::__wasi_fd_t,) -> wasm32::__wasi_errno_t;
... |
255 | | ) -> wasm32::__wasi_errno_t;
256 | | }
| |_- in this macro invocation
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_mut_passed
warning: The function/method `fd_fdstat_set_flags` doesn't need a mutable reference
--> src/macros.rs:3:13
|
3 | #[wasi_common_cbindgen::wasi_common_cbindgen]
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
::: src/hostcalls/fs.rs:5:1
|
5 | / hostcalls! {
6 | | pub fn fd_close(wasi_ctx: &mut WasiCtx, fd: wasm32::__wasi_fd_t,) -> wasm32::__wasi_errno_t;
7 | |
8 | | pub fn fd_datasync(wasi_ctx: &WasiCtx, fd: wasm32::__wasi_fd_t,) -> wasm32::__wasi_errno_t;
... |
255 | | ) -> wasm32::__wasi_errno_t;
256 | | }
| |_- in this macro invocation
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_mut_passed
warning: The function/method `fd_sync` doesn't need a mutable reference
--> src/macros.rs:3:13
|
3 | #[wasi_common_cbindgen::wasi_common_cbindgen]
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
::: src/hostcalls/fs.rs:5:1
|
5 | / hostcalls! {
6 | | pub fn fd_close(wasi_ctx: &mut WasiCtx, fd: wasm32::__wasi_fd_t,) -> wasm32::__wasi_errno_t;
7 | |
8 | | pub fn fd_datasync(wasi_ctx: &WasiCtx, fd: wasm32::__wasi_fd_t,) -> wasm32::__wasi_errno_t;
... |
255 | | ) -> wasm32::__wasi_errno_t;
256 | | }
| |_- in this macro invocation
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_mut_passed
warning: The function/method `fd_advise` doesn't need a mutable reference
--> src/macros.rs:3:13
|
3 | #[wasi_common_cbindgen::wasi_common_cbindgen]
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
::: src/hostcalls/fs.rs:5:1
|
5 | / hostcalls! {
6 | | pub fn fd_close(wasi_ctx: &mut WasiCtx, fd: wasm32::__wasi_fd_t,) -> wasm32::__wasi_errno_t;
7 | |
8 | | pub fn fd_datasync(wasi_ctx: &WasiCtx, fd: wasm32::__wasi_fd_t,) -> wasm32::__wasi_errno_t;
... |
255 | | ) -> wasm32::__wasi_errno_t;
256 | | }
| |_- in this macro invocation
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_mut_passed
warning: The function/method `fd_allocate` doesn't need a mutable reference
--> src/macros.rs:3:13
|
3 | #[wasi_common_cbindgen::wasi_common_cbindgen]
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
::: src/hostcalls/fs.rs:5:1
|
5 | / hostcalls! {
6 | | pub fn fd_close(wasi_ctx: &mut WasiCtx, fd: wasm32::__wasi_fd_t,) -> wasm32::__wasi_errno_t;
7 | |
8 | | pub fn fd_datasync(wasi_ctx: &WasiCtx, fd: wasm32::__wasi_fd_t,) -> wasm32::__wasi_errno_t;
... |
255 | | ) -> wasm32::__wasi_errno_t;
256 | | }
| |_- in this macro invocation
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_mut_passed
warning: The function/method `path_create_directory` doesn't need a mutable reference
--> src/macros.rs:3:13
|
3 | #[wasi_common_cbindgen::wasi_common_cbindgen]
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
::: src/hostcalls/fs.rs:5:1
|
5 | / hostcalls! {
6 | | pub fn fd_close(wasi_ctx: &mut WasiCtx, fd: wasm32::__wasi_fd_t,) -> wasm32::__wasi_errno_t;
7 | |
8 | | pub fn fd_datasync(wasi_ctx: &WasiCtx, fd: wasm32::__wasi_fd_t,) -> wasm32::__wasi_errno_t;
... |
255 | | ) -> wasm32::__wasi_errno_t;
256 | | }
| |_- in this macro invocation
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_mut_passed
warning: this function has too many arguments (9/7)
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#too_many_arguments
warning: The function/method `path_link` doesn't need a mutable reference
--> src/macros.rs:3:13
|
3 | #[wasi_common_cbindgen::wasi_common_cbindgen]
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
::: src/hostcalls/fs.rs:5:1
|
5 | / hostcalls! {
6 | | pub fn fd_close(wasi_ctx: &mut WasiCtx, fd: wasm32::__wasi_fd_t,) -> wasm32::__wasi_errno_t;
7 | |
8 | | pub fn fd_datasync(wasi_ctx: &WasiCtx, fd: wasm32::__wasi_fd_t,) -> wasm32::__wasi_errno_t;
... |
255 | | ) -> wasm32::__wasi_errno_t;
256 | | }
| |_- in this macro invocation
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_mut_passed
warning: this function has too many arguments (11/7)
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#too_many_arguments
warning: The function/method `fd_readdir` doesn't need a mutable reference
--> src/macros.rs:3:13
|
3 | #[wasi_common_cbindgen::wasi_common_cbindgen]
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
::: src/hostcalls/fs.rs:5:1
|
5 | / hostcalls! {
6 | | pub fn fd_close(wasi_ctx: &mut WasiCtx, fd: wasm32::__wasi_fd_t,) -> wasm32::__wasi_errno_t;
7 | |
8 | | pub fn fd_datasync(wasi_ctx: &WasiCtx, fd: wasm32::__wasi_fd_t,) -> wasm32::__wasi_errno_t;
... |
255 | | ) -> wasm32::__wasi_errno_t;
256 | | }
| |_- in this macro invocation
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_mut_passed
warning: this function has too many arguments (8/7)
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#too_many_arguments
warning: The function/method `path_readlink` doesn't need a mutable reference
--> src/macros.rs:3:13
|
3 | #[wasi_common_cbindgen::wasi_common_cbindgen]
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
::: src/hostcalls/fs.rs:5:1
|
5 | / hostcalls! {
6 | | pub fn fd_close(wasi_ctx: &mut WasiCtx, fd: wasm32::__wasi_fd_t,) -> wasm32::__wasi_errno_t;
7 | |
8 | | pub fn fd_datasync(wasi_ctx: &WasiCtx, fd: wasm32::__wasi_fd_t,) -> wasm32::__wasi_errno_t;
... |
255 | | ) -> wasm32::__wasi_errno_t;
256 | | }
| |_- in this macro invocation
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_mut_passed
warning: The function/method `path_rename` doesn't need a mutable reference
--> src/macros.rs:3:13
|
3 | #[wasi_common_cbindgen::wasi_common_cbindgen]
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
::: src/hostcalls/fs.rs:5:1
|
5 | / hostcalls! {
6 | | pub fn fd_close(wasi_ctx: &mut WasiCtx, fd: wasm32::__wasi_fd_t,) -> wasm32::__wasi_errno_t;
7 | |
8 | | pub fn fd_datasync(wasi_ctx: &WasiCtx, fd: wasm32::__wasi_fd_t,) -> wasm32::__wasi_errno_t;
... |
255 | | ) -> wasm32::__wasi_errno_t;
256 | | }
| |_- in this macro invocation
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_mut_passed
warning: The function/method `fd_filestat_get` doesn't need a mutable reference
--> src/macros.rs:3:13
|
3 | #[wasi_common_cbindgen::wasi_common_cbindgen]
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
::: src/hostcalls/fs.rs:5:1
|
5 | / hostcalls! {
6 | | pub fn fd_close(wasi_ctx: &mut WasiCtx, fd: wasm32::__wasi_fd_t,) -> wasm32::__wasi_errno_t;
7 | |
8 | | pub fn fd_datasync(wasi_ctx: &WasiCtx, fd: wasm32::__wasi_fd_t,) -> wasm32::__wasi_errno_t;
... |
255 | | ) -> wasm32::__wasi_errno_t;
256 | | }
| |_- in this macro invocation
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_mut_passed
warning: The function/method `fd_filestat_set_times` doesn't need a mutable reference
--> src/macros.rs:3:13
|
3 | #[wasi_common_cbindgen::wasi_common_cbindgen]
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
::: src/hostcalls/fs.rs:5:1
|
5 | / hostcalls! {
6 | | pub fn fd_close(wasi_ctx: &mut WasiCtx, fd: wasm32::__wasi_fd_t,) -> wasm32::__wasi_errno_t;
7 | |
8 | | pub fn fd_datasync(wasi_ctx: &WasiCtx, fd: wasm32::__wasi_fd_t,) -> wasm32::__wasi_errno_t;
... |
255 | | ) -> wasm32::__wasi_errno_t;
256 | | }
| |_- in this macro invocation
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_mut_passed
warning: The function/method `fd_filestat_set_size` doesn't need a mutable reference
--> src/macros.rs:3:13
|
3 | #[wasi_common_cbindgen::wasi_common_cbindgen]
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
::: src/hostcalls/fs.rs:5:1
|
5 | / hostcalls! {
6 | | pub fn fd_close(wasi_ctx: &mut WasiCtx, fd: wasm32::__wasi_fd_t,) -> wasm32::__wasi_errno_t;
7 | |
8 | | pub fn fd_datasync(wasi_ctx: &WasiCtx, fd: wasm32::__wasi_fd_t,) -> wasm32::__wasi_errno_t;
... |
255 | | ) -> wasm32::__wasi_errno_t;
256 | | }
| |_- in this macro invocation
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_mut_passed
warning: The function/method `path_filestat_get` doesn't need a mutable reference
--> src/macros.rs:3:13
|
3 | #[wasi_common_cbindgen::wasi_common_cbindgen]
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
::: src/hostcalls/fs.rs:5:1
|
5 | / hostcalls! {
6 | | pub fn fd_close(wasi_ctx: &mut WasiCtx, fd: wasm32::__wasi_fd_t,) -> wasm32::__wasi_errno_t;
7 | |
8 | | pub fn fd_datasync(wasi_ctx: &WasiCtx, fd: wasm32::__wasi_fd_t,) -> wasm32::__wasi_errno_t;
... |
255 | | ) -> wasm32::__wasi_errno_t;
256 | | }
| |_- in this macro invocation
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_mut_passed
warning: The function/method `path_filestat_set_times` doesn't need a mutable reference
--> src/macros.rs:3:13
|
3 | #[wasi_common_cbindgen::wasi_common_cbindgen]
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
::: src/hostcalls/fs.rs:5:1
|
5 | / hostcalls! {
6 | | pub fn fd_close(wasi_ctx: &mut WasiCtx, fd: wasm32::__wasi_fd_t,) -> wasm32::__wasi_errno_t;
7 | |
8 | | pub fn fd_datasync(wasi_ctx: &WasiCtx, fd: wasm32::__wasi_fd_t,) -> wasm32::__wasi_errno_t;
... |
255 | | ) -> wasm32::__wasi_errno_t;
256 | | }
| |_- in this macro invocation
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_mut_passed
warning: The function/method `path_symlink` doesn't need a mutable reference
--> src/macros.rs:3:13
|
3 | #[wasi_common_cbindgen::wasi_common_cbindgen]
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
::: src/hostcalls/fs.rs:5:1
|
5 | / hostcalls! {
6 | | pub fn fd_close(wasi_ctx: &mut WasiCtx, fd: wasm32::__wasi_fd_t,) -> wasm32::__wasi_errno_t;
7 | |
8 | | pub fn fd_datasync(wasi_ctx: &WasiCtx, fd: wasm32::__wasi_fd_t,) -> wasm32::__wasi_errno_t;
... |
255 | | ) -> wasm32::__wasi_errno_t;
256 | | }
| |_- in this macro invocation
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_mut_passed
warning: The function/method `path_unlink_file` doesn't need a mutable reference
--> src/macros.rs:3:13
|
3 | #[wasi_common_cbindgen::wasi_common_cbindgen]
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
::: src/hostcalls/fs.rs:5:1
|
5 | / hostcalls! {
6 | | pub fn fd_close(wasi_ctx: &mut WasiCtx, fd: wasm32::__wasi_fd_t,) -> wasm32::__wasi_errno_t;
7 | |
8 | | pub fn fd_datasync(wasi_ctx: &WasiCtx, fd: wasm32::__wasi_fd_t,) -> wasm32::__wasi_errno_t;
... |
255 | | ) -> wasm32::__wasi_errno_t;
256 | | }
| |_- in this macro invocation
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_mut_passed
warning: The function/method `path_remove_directory` doesn't need a mutable reference
--> src/macros.rs:3:13
|
3 | #[wasi_common_cbindgen::wasi_common_cbindgen]
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
::: src/hostcalls/fs.rs:5:1
|
5 | / hostcalls! {
6 | | pub fn fd_close(wasi_ctx: &mut WasiCtx, fd: wasm32::__wasi_fd_t,) -> wasm32::__wasi_errno_t;
7 | |
8 | | pub fn fd_datasync(wasi_ctx: &WasiCtx, fd: wasm32::__wasi_fd_t,) -> wasm32::__wasi_errno_t;
... |
255 | | ) -> wasm32::__wasi_errno_t;
256 | | }
| |_- in this macro invocation
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_mut_passed
warning: The function/method `fd_prestat_get` doesn't need a mutable reference
--> src/macros.rs:3:13
|
3 | #[wasi_common_cbindgen::wasi_common_cbindgen]
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
::: src/hostcalls/fs.rs:5:1
|
5 | / hostcalls! {
6 | | pub fn fd_close(wasi_ctx: &mut WasiCtx, fd: wasm32::__wasi_fd_t,) -> wasm32::__wasi_errno_t;
7 | |
8 | | pub fn fd_datasync(wasi_ctx: &WasiCtx, fd: wasm32::__wasi_fd_t,) -> wasm32::__wasi_errno_t;
... |
255 | | ) -> wasm32::__wasi_errno_t;
256 | | }
| |_- in this macro invocation
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_mut_passed
warning: The function/method `fd_prestat_dir_name` doesn't need a mutable reference
--> src/macros.rs:3:13
|
3 | #[wasi_common_cbindgen::wasi_common_cbindgen]
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
::: src/hostcalls/fs.rs:5:1
|
5 | / hostcalls! {
6 | | pub fn fd_close(wasi_ctx: &mut WasiCtx, fd: wasm32::__wasi_fd_t,) -> wasm32::__wasi_errno_t;
7 | |
8 | | pub fn fd_datasync(wasi_ctx: &WasiCtx, fd: wasm32::__wasi_fd_t,) -> wasm32::__wasi_errno_t;
... |
255 | | ) -> wasm32::__wasi_errno_t;
256 | | }
| |_- in this macro invocation
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_mut_passed
warning: The function/method `proc_raise` doesn't need a mutable reference
--> src/hostcalls/misc.rs:17:1
|
17 | #[wasi_common_cbindgen]
| ^^^^^^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_mut_passed
warning: The function/method `args_get` doesn't need a mutable reference
--> src/macros.rs:3:13
|
3 | #[wasi_common_cbindgen::wasi_common_cbindgen]
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
::: src/hostcalls/misc.rs:26:1
|
26 | / hostcalls! {
27 | | pub fn args_get(
28 | | wasi_ctx: &WasiCtx,
29 | | memory: &mut [u8],
... |
82 | | pub fn sched_yield() -> wasm32::__wasi_errno_t;
83 | | }
| |_- in this macro invocation
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_mut_passed
warning: The function/method `args_sizes_get` doesn't need a mutable reference
--> src/macros.rs:3:13
|
3 | #[wasi_common_cbindgen::wasi_common_cbindgen]
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
::: src/hostcalls/misc.rs:26:1
|
26 | / hostcalls! {
27 | | pub fn args_get(
28 | | wasi_ctx: &WasiCtx,
29 | | memory: &mut [u8],
... |
82 | | pub fn sched_yield() -> wasm32::__wasi_errno_t;
83 | | }
| |_- in this macro invocation
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_mut_passed
warning: The function/method `environ_get` doesn't need a mutable reference
--> src/macros.rs:3:13
|
3 | #[wasi_common_cbindgen::wasi_common_cbindgen]
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
::: src/hostcalls/misc.rs:26:1
|
26 | / hostcalls! {
27 | | pub fn args_get(
28 | | wasi_ctx: &WasiCtx,
29 | | memory: &mut [u8],
... |
82 | | pub fn sched_yield() -> wasm32::__wasi_errno_t;
83 | | }
| |_- in this macro invocation
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_mut_passed
warning: The function/method `environ_sizes_get` doesn't need a mutable reference
--> src/macros.rs:3:13
|
3 | #[wasi_common_cbindgen::wasi_common_cbindgen]
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
::: src/hostcalls/misc.rs:26:1
|
26 | / hostcalls! {
27 | | pub fn args_get(
28 | | wasi_ctx: &WasiCtx,
29 | | memory: &mut [u8],
... |
82 | | pub fn sched_yield() -> wasm32::__wasi_errno_t;
83 | | }
| |_- in this macro invocation
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_mut_passed
warning: this function has too many arguments (8/7)
--> src/hostcalls/sock.rs:9:1
|
9 | / pub fn sock_recv(
10 | | wasi_ctx: &WasiCtx,
11 | | memory: &mut [u8],
12 | | sock: wasm32::__wasi_fd_t,
... |
17 | | ro_flags: wasm32::uintptr_t,
18 | | ) -> wasm32::__wasi_errno_t {
| |___________________________^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#too_many_arguments
warning: The function/method `sock_recv` doesn't need a mutable reference
--> src/hostcalls/sock.rs:8:1
|
8 | #[wasi_common_cbindgen]
| ^^^^^^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_mut_passed
warning: The function/method `sock_send` doesn't need a mutable reference
--> src/hostcalls/sock.rs:22:1
|
22 | #[wasi_common_cbindgen]
| ^^^^^^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_mut_passed
warning: The function/method `sock_shutdown` doesn't need a mutable reference
--> src/hostcalls/sock.rs:35:1
|
35 | #[wasi_common_cbindgen]
| ^^^^^^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_mut_passed
warning: this argument (8 byte) is passed by reference, but would be more efficient if passed by value (limit: 8 byte)
--> src/memory.rs:137:13
|
137 | ciovec: &wasm32::__wasi_ciovec_t,
| ^^^^^^^^^^^^^^^^^^^^^^^^ help: consider passing by value instead: `wasm32::__wasi_ciovec_t`
|
= note: #[warn(clippy::trivially_copy_pass_by_ref)] on by default
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#trivially_copy_pass_by_ref
warning: this argument (8 byte) is passed by reference, but would be more efficient if passed by value (limit: 8 byte)
--> src/memory.rs:155:40
|
155 | pub fn dec_iovec(memory: &[u8], iovec: &wasm32::__wasi_iovec_t) -> Result<host::__wasi_iovec_t> {
| ^^^^^^^^^^^^^^^^^^^^^^^ help: consider passing by value instead: `wasm32::__wasi_iovec_t`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#trivially_copy_pass_by_ref
Finished dev [unoptimized + debuginfo] target(s) in 0.93s