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:
Piotr Osiewicz 2025-03-31 20:55:27 +02:00 committed by GitHub
parent d50905e000
commit dc64ec9cc8
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
802 changed files with 3775 additions and 3662 deletions

View file

@ -3,7 +3,6 @@ use std::rc::Rc;
use ::util::ResultExt;
use anyhow::Context as _;
use windows::{
core::PCWSTR,
Win32::{
Foundation::*,
Graphics::Gdi::*,
@ -15,6 +14,7 @@ use windows::{
WindowsAndMessaging::*,
},
},
core::PCWSTR,
};
use crate::*;
@ -232,11 +232,7 @@ fn handle_close_msg(state_ptr: Rc<WindowsWindowStatePtr>) -> Option<isize> {
drop(lock);
let should_close = callback();
state_ptr.state.borrow_mut().callbacks.should_close = Some(callback);
if should_close {
None
} else {
Some(0)
}
if should_close { None } else { Some(0) }
} else {
None
}