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
|
@ -4936,7 +4936,7 @@ async fn test_project_search(
|
|||
|
||||
// Perform a search as the guest.
|
||||
let mut results = HashMap::default();
|
||||
let mut search_rx = project_b.update(cx_b, |project, cx| {
|
||||
let search_rx = project_b.update(cx_b, |project, cx| {
|
||||
project.search(
|
||||
SearchQuery::text(
|
||||
"world",
|
||||
|
@ -4951,7 +4951,7 @@ async fn test_project_search(
|
|||
cx,
|
||||
)
|
||||
});
|
||||
while let Some(result) = search_rx.next().await {
|
||||
while let Ok(result) = search_rx.recv().await {
|
||||
match result {
|
||||
SearchResult::Buffer { buffer, ranges } => {
|
||||
results.entry(buffer).or_insert(ranges);
|
||||
|
|
|
@ -6,7 +6,6 @@ use call::ActiveCall;
|
|||
use collections::{BTreeMap, HashMap};
|
||||
use editor::Bias;
|
||||
use fs::{FakeFs, Fs as _};
|
||||
use futures::StreamExt;
|
||||
use git::repository::GitFileStatus;
|
||||
use gpui::{BackgroundExecutor, Model, TestAppContext};
|
||||
use language::{
|
||||
|
@ -873,7 +872,7 @@ impl RandomizedTest for ProjectCollaborationTest {
|
|||
if detach { "detaching" } else { "awaiting" }
|
||||
);
|
||||
|
||||
let mut search = project.update(cx, |project, cx| {
|
||||
let search = project.update(cx, |project, cx| {
|
||||
project.search(
|
||||
SearchQuery::text(
|
||||
query,
|
||||
|
@ -891,7 +890,7 @@ impl RandomizedTest for ProjectCollaborationTest {
|
|||
drop(project);
|
||||
let search = cx.executor().spawn(async move {
|
||||
let mut results = HashMap::default();
|
||||
while let Some(result) = search.next().await {
|
||||
while let Ok(result) = search.recv().await {
|
||||
if let SearchResult::Buffer { buffer, ranges } = result {
|
||||
results.entry(buffer).or_insert(ranges);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue