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
|
@ -67,14 +67,16 @@ impl AppSession {
|
|||
pub fn new(session: Session, cx: &Context<Self>) -> Self {
|
||||
let _subscriptions = vec![cx.on_app_quit(Self::app_will_quit)];
|
||||
|
||||
let _serialization_task = Some(cx.spawn(async move |_, cx| loop {
|
||||
if let Some(windows) = cx.update(|cx| cx.window_stack()).ok().flatten() {
|
||||
store_window_stack(windows).await;
|
||||
}
|
||||
let _serialization_task = Some(cx.spawn(async move |_, cx| {
|
||||
loop {
|
||||
if let Some(windows) = cx.update(|cx| cx.window_stack()).ok().flatten() {
|
||||
store_window_stack(windows).await;
|
||||
}
|
||||
|
||||
cx.background_executor()
|
||||
.timer(Duration::from_millis(100))
|
||||
.await;
|
||||
cx.background_executor()
|
||||
.timer(Duration::from_millis(100))
|
||||
.await;
|
||||
}
|
||||
}));
|
||||
|
||||
Self {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue