Skip to content

update wasmer; mem.grow compile time limits checks #26

update wasmer; mem.grow compile time limits checks

update wasmer; mem.grow compile time limits checks #26

GitHub Actions / clippy succeeded Aug 20, 2024 in 0s

clippy

1 warning

Details

Results

Message level Amount
Internal compiler error 0
Error 0
Warning 1
Note 0
Help 0

Versions

  • rustc 1.80.1 (3f5fd8dd4 2024-08-06)
  • cargo 1.80.1 (376290515 2024-07-16)
  • clippy 0.1.80 (3f5fd8d 2024-08-06)

Annotations

Check warning on line 140 in vm-executor-wasmer/src/wasmer_instance.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

writing `&Vec` instead of `&[_]` involves a new object where a slice will do

warning: writing `&Vec` instead of `&[_]` involves a new object where a slice will do
   --> vm-executor-wasmer/src/wasmer_instance.rs:140:32
    |
140 | fn validate_memories(memories: &Vec<(&String, &wasmer::Memory)>) -> Result<(), ExecutorError> {
    |                                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: change this to: `&[(&String, &wasmer::Memory)]`
    |
    = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#ptr_arg
    = note: `#[warn(clippy::ptr_arg)]` on by default