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
|
@ -1675,9 +1675,8 @@ impl ExtensionStore {
|
|||
let schema_path = &extension::build_debug_adapter_schema_path(adapter_name, meta);
|
||||
|
||||
if fs.is_file(&src_dir.join(schema_path)).await {
|
||||
match schema_path.parent() {
|
||||
Some(parent) => fs.create_dir(&tmp_dir.join(parent)).await?,
|
||||
None => {}
|
||||
if let Some(parent) = schema_path.parent() {
|
||||
fs.create_dir(&tmp_dir.join(parent)).await?
|
||||
}
|
||||
fs.copy_file(
|
||||
&src_dir.join(schema_path),
|
||||
|
|
|
@ -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