chore: Bump Rust edition to 2024 (#27800)
Follow-up to https://github.com/zed-industries/zed/pull/27791 Release Notes: - N/A
This commit is contained in:
parent
d50905e000
commit
dc64ec9cc8
802 changed files with 3775 additions and 3662 deletions
|
@ -4,7 +4,7 @@ use client::{ChannelId, Client, UserStore};
|
|||
use collections::HashMap;
|
||||
use db::smol::stream::StreamExt;
|
||||
use gpui::{App, AppContext as _, AsyncApp, Context, Entity, EventEmitter, Global, Task};
|
||||
use rpc::{proto, Notification, TypedEnvelope};
|
||||
use rpc::{Notification, TypedEnvelope, proto};
|
||||
use std::{ops::Range, sync::Arc};
|
||||
use sum_tree::{Bias, SumTree};
|
||||
use time::OffsetDateTime;
|
||||
|
@ -368,7 +368,7 @@ impl NotificationStore {
|
|||
new_notifications.append(cursor.slice(&NotificationId(id), Bias::Left, &()), &());
|
||||
|
||||
if i == 0 {
|
||||
old_range.start = cursor.start().1 .0;
|
||||
old_range.start = cursor.start().1.0;
|
||||
}
|
||||
|
||||
let old_notification = cursor.item();
|
||||
|
@ -401,7 +401,7 @@ impl NotificationStore {
|
|||
}
|
||||
}
|
||||
|
||||
old_range.end = cursor.start().1 .0;
|
||||
old_range.end = cursor.start().1.0;
|
||||
let new_count = new_notifications.summary().count - old_range.start;
|
||||
new_notifications.append(cursor.suffix(&()), &());
|
||||
drop(cursor);
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
use std::rc::Rc;
|
||||
|
||||
use gpui::{DismissEvent, Entity, EventEmitter, FocusHandle, Focusable, IntoElement};
|
||||
use ui::{prelude::*, Tooltip};
|
||||
use ui::{Tooltip, prelude::*};
|
||||
use workspace::{ToastAction, ToastView};
|
||||
|
||||
#[derive(Clone, Copy)]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue