deps: Bump smol to 2.0 (#22956)
The collateral of this is that code size is increased by ~300kB, but I think we can stomach it. Release Notes: - N/A
This commit is contained in:
parent
1f84c1b6c7
commit
9e113bccd0
25 changed files with 187 additions and 330 deletions
|
@ -1396,10 +1396,8 @@ impl FakeLanguageServer {
|
|||
pub async fn try_receive_notification<T: notification::Notification>(
|
||||
&mut self,
|
||||
) -> Option<T::Params> {
|
||||
use futures::StreamExt as _;
|
||||
|
||||
loop {
|
||||
let (method, params) = self.notifications_rx.next().await?;
|
||||
let (method, params) = self.notifications_rx.recv().await.ok()?;
|
||||
if method == T::METHOD {
|
||||
return Some(serde_json::from_str::<T::Params>(¶ms).unwrap());
|
||||
} else {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue