Another batch of lint fixes (#36521)
- **Enable a bunch of extra lints** - **First batch of fixes** - **More fixes** Release Notes: - N/A
This commit is contained in:
parent
69b1c6d6f5
commit
6825715503
147 changed files with 788 additions and 1042 deletions
|
@ -532,7 +532,7 @@ fn wasm_engine(executor: &BackgroundExecutor) -> wasmtime::Engine {
|
|||
// `Future::poll`.
|
||||
const EPOCH_INTERVAL: Duration = Duration::from_millis(100);
|
||||
let mut timer = Timer::interval(EPOCH_INTERVAL);
|
||||
while let Some(_) = timer.next().await {
|
||||
while (timer.next().await).is_some() {
|
||||
// Exit the loop and thread once the engine is dropped.
|
||||
let Some(engine) = engine_ref.upgrade() else {
|
||||
break;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue