fix async guest function panic in multi-thread tokio runtime env #604
Annotations
1 error and 11 warnings
|
The following actions uses node12 which is deprecated and will be forced to run on node16: actions/checkout@v2, actions/cache@v2. For more info: https://github.blog/changelog/2023-06-13-github-actions-all-actions-will-run-on-node16-instead-of-node12-by-default/
|
The following actions use a deprecated Node.js version and will be forced to run on node20: actions/checkout@v2, actions/cache@v2, giraffate/clippy-action@v1. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/
|
fp-bindgen-support/src/wasmer2_host/task_spawner.rs#L1
[clippy] reported by reviewdog 🐶
warning: unused import: `crate::common::mem::FatPtr`
--> fp-bindgen-support/src/wasmer2_host/task_spawner.rs:1:5
|
1 | use crate::common::mem::FatPtr;
| ^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= note: `#[warn(unused_imports)]` on by default
Raw Output:
fp-bindgen-support/src/wasmer2_host/task_spawner.rs:1:5:w:warning: unused import: `crate::common::mem::FatPtr`
--> fp-bindgen-support/src/wasmer2_host/task_spawner.rs:1:5
|
1 | use crate::common::mem::FatPtr;
| ^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= note: `#[warn(unused_imports)]` on by default
__END__
|
fp-bindgen-support/src/wasmer2_host/task_spawner.rs#L2
[clippy] reported by reviewdog 🐶
warning: unused import: `std::collections::HashMap`
--> fp-bindgen-support/src/wasmer2_host/task_spawner.rs:2:5
|
2 | use std::collections::HashMap;
| ^^^^^^^^^^^^^^^^^^^^^^^^^
Raw Output:
fp-bindgen-support/src/wasmer2_host/task_spawner.rs:2:5:w:warning: unused import: `std::collections::HashMap`
--> fp-bindgen-support/src/wasmer2_host/task_spawner.rs:2:5
|
2 | use std::collections::HashMap;
| ^^^^^^^^^^^^^^^^^^^^^^^^^
__END__
|
fp-bindgen-support/src/wasmer2_host/task_spawner.rs#L3
[clippy] reported by reviewdog 🐶
warning: unused import: `Mutex`
--> fp-bindgen-support/src/wasmer2_host/task_spawner.rs:3:22
|
3 | use std::sync::{Arc, Mutex};
| ^^^^^
Raw Output:
fp-bindgen-support/src/wasmer2_host/task_spawner.rs:3:22:w:warning: unused import: `Mutex`
--> fp-bindgen-support/src/wasmer2_host/task_spawner.rs:3:22
|
3 | use std::sync::{Arc, Mutex};
| ^^^^^
__END__
|
fp-bindgen-support/src/wasmer2_host/task_spawner.rs#L4
[clippy] reported by reviewdog 🐶
warning: unused import: `std::cell::RefCell`
--> fp-bindgen-support/src/wasmer2_host/task_spawner.rs:4:5
|
4 | use std::cell::RefCell;
| ^^^^^^^^^^^^^^^^^^
Raw Output:
fp-bindgen-support/src/wasmer2_host/task_spawner.rs:4:5:w:warning: unused import: `std::cell::RefCell`
--> fp-bindgen-support/src/wasmer2_host/task_spawner.rs:4:5
|
4 | use std::cell::RefCell;
| ^^^^^^^^^^^^^^^^^^
__END__
|
fp-bindgen-support/src/wasmer2_host/task_spawner.rs#L7
[clippy] reported by reviewdog 🐶
warning: unused import: `std::task::Waker`
--> fp-bindgen-support/src/wasmer2_host/task_spawner.rs:7:5
|
7 | use std::task::Waker;
| ^^^^^^^^^^^^^^^^
Raw Output:
fp-bindgen-support/src/wasmer2_host/task_spawner.rs:7:5:w:warning: unused import: `std::task::Waker`
--> fp-bindgen-support/src/wasmer2_host/task_spawner.rs:7:5
|
7 | use std::task::Waker;
| ^^^^^^^^^^^^^^^^
__END__
|
fp-bindgen-support/src/wasmer2_host/task_spawner.rs#L8
[clippy] reported by reviewdog 🐶
warning: unused import: `tokio::task::LocalSet`
--> fp-bindgen-support/src/wasmer2_host/task_spawner.rs:8:5
|
8 | use tokio::task::LocalSet;
| ^^^^^^^^^^^^^^^^^^^^^
Raw Output:
fp-bindgen-support/src/wasmer2_host/task_spawner.rs:8:5:w:warning: unused import: `tokio::task::LocalSet`
--> fp-bindgen-support/src/wasmer2_host/task_spawner.rs:8:5
|
8 | use tokio::task::LocalSet;
| ^^^^^^^^^^^^^^^^^^^^^
__END__
|
fp-bindgen-support/src/wasmer2_host/task_spawner.rs#L9
[clippy] reported by reviewdog 🐶
warning: unused imports: `Receiver`, `Sender`
--> fp-bindgen-support/src/wasmer2_host/task_spawner.rs:9:31
|
9 | use tokio::sync::mpsc::{self, Receiver, Sender};
| ^^^^^^^^ ^^^^^^
Raw Output:
fp-bindgen-support/src/wasmer2_host/task_spawner.rs:9:31:w:warning: unused imports: `Receiver`, `Sender`
--> fp-bindgen-support/src/wasmer2_host/task_spawner.rs:9:31
|
9 | use tokio::sync::mpsc::{self, Receiver, Sender};
| ^^^^^^^^ ^^^^^^
__END__
|
fp-bindgen-support/src/wasmer2_host/task_spawner.rs#L11
[clippy] reported by reviewdog 🐶
warning: unused imports: `LazyInit`, `Memory`, `NativeFunc`
--> fp-bindgen-support/src/wasmer2_host/task_spawner.rs:11:14
|
11 | use wasmer::{LazyInit, Memory, NativeFunc};
| ^^^^^^^^ ^^^^^^ ^^^^^^^^^^
Raw Output:
fp-bindgen-support/src/wasmer2_host/task_spawner.rs:11:14:w:warning: unused imports: `LazyInit`, `Memory`, `NativeFunc`
--> fp-bindgen-support/src/wasmer2_host/task_spawner.rs:11:14
|
11 | use wasmer::{LazyInit, Memory, NativeFunc};
| ^^^^^^^^ ^^^^^^ ^^^^^^^^^^
__END__
|
fp-bindgen-support/src/wasmer2_host/task_spawner.rs#L86
[clippy] reported by reviewdog 🐶
warning: you should consider adding a `Default` implementation for `CurrentThreadSpawner`
--> fp-bindgen-support/src/wasmer2_host/task_spawner.rs:86:5
|
86 | / pub fn new() -> Self {
87 | | let (sender, mut receiver) = mpsc::channel::<Task>(100);
88 | |
89 | | let rt = Builder::new_current_thread()
... |
109 | | CurrentThreadSpawner { sender }
110 | | }
| |_____^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#new_without_default
= note: `#[warn(clippy::new_without_default)]` on by default
help: try adding this
|
85 + impl Default for CurrentThreadSpawner {
86 + fn default() -> Self {
87 + Self::new()
88 + }
89 + }
|
Raw Output:
fp-bindgen-support/src/wasmer2_host/task_spawner.rs:86:5:w:warning: you should consider adding a `Default` implementation for `CurrentThreadSpawner`
--> fp-bindgen-support/src/wasmer2_host/task_spawner.rs:86:5
|
86 | / pub fn new() -> Self {
87 | | let (sender, mut receiver) = mpsc::channel::<Task>(100);
88 | |
89 | | let rt = Builder::new_current_thread()
... |
109 | | CurrentThreadSpawner { sender }
110 | | }
| |_____^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#new_without_default
= note: `#[warn(clippy::new_without_default)]` on by default
help: try adding this
|
85 + impl Default for CurrentThreadSpawner {
86 + fn default() -> Self {
87 + Self::new()
88 + }
89 + }
|
__END__
|
This job failed
Loading