Rename IIFE to maybe (#3165)
Too good of an idea to forget Release Notes: - N/A
This commit is contained in:
commit
f67f42779b
7 changed files with 22 additions and 22 deletions
|
@ -19,7 +19,7 @@ use std::{
|
|||
},
|
||||
};
|
||||
use util::{
|
||||
async_iife,
|
||||
async_maybe,
|
||||
fs::remove_matching,
|
||||
github::{latest_github_release, GitHubLspBinaryVersion},
|
||||
ResultExt,
|
||||
|
@ -421,7 +421,7 @@ impl LspAdapter for NextLspAdapter {
|
|||
}
|
||||
|
||||
async fn get_cached_server_binary_next(container_dir: PathBuf) -> Option<LanguageServerBinary> {
|
||||
async_iife!({
|
||||
async_maybe!({
|
||||
let mut last_binary_path = None;
|
||||
let mut entries = fs::read_dir(&container_dir).await?;
|
||||
while let Some(entry) = entries.next().await {
|
||||
|
|
|
@ -8,7 +8,7 @@ use lsp::LanguageServerBinary;
|
|||
use smol::fs;
|
||||
use std::{any::Any, env::consts, path::PathBuf};
|
||||
use util::{
|
||||
async_iife,
|
||||
async_maybe,
|
||||
github::{latest_github_release, GitHubLspBinaryVersion},
|
||||
ResultExt,
|
||||
};
|
||||
|
@ -106,7 +106,7 @@ impl super::LspAdapter for LuaLspAdapter {
|
|||
}
|
||||
|
||||
async fn get_cached_server_binary(container_dir: PathBuf) -> Option<LanguageServerBinary> {
|
||||
async_iife!({
|
||||
async_maybe!({
|
||||
let mut last_binary_path = None;
|
||||
let mut entries = fs::read_dir(&container_dir).await?;
|
||||
while let Some(entry) = entries.next().await {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue