Revert "chore: Bump Rust to 1.89 (#35788)" (#35843)

This reverts commit efba2cbfd3.

Unfortunately, the Docker image for 1.89 has not shown up yet. Once it
has, we should re-land this.

Release Notes:

- N/A
This commit is contained in:
Mikayla Maki 2025-08-07 16:55:15 -07:00 committed by GitHub
parent 3d662ee282
commit c7d641ecb8
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
8 changed files with 55 additions and 35 deletions

View file

@ -1,6 +1,28 @@
use std::ops::Deref;
use windows::Win32::UI::WindowsAndMessaging::HCURSOR;
use windows::Win32::{Foundation::HANDLE, UI::WindowsAndMessaging::HCURSOR};
#[derive(Debug, Clone, Copy)]
pub(crate) struct SafeHandle {
raw: HANDLE,
}
unsafe impl Send for SafeHandle {}
unsafe impl Sync for SafeHandle {}
impl From<HANDLE> for SafeHandle {
fn from(value: HANDLE) -> Self {
SafeHandle { raw: value }
}
}
impl Deref for SafeHandle {
type Target = HANDLE;
fn deref(&self) -> &Self::Target {
&self.raw
}
}
#[derive(Debug, Clone, Copy)]
pub(crate) struct SafeCursor {