mirror of
https://github.com/rust-windowing/winit.git
synced 2026-08-29 04:40:04 -04:00
Bump MSRV to 1.86
This commit is contained in:
committed by
Kirill Chibisov
parent
0ea5f3c875
commit
0e7ed677f1
@@ -664,7 +664,7 @@ fn pick_effect(actions: &[DndAction], key_state: u32, source_allowed: u32) -> u3
|
||||
}
|
||||
|
||||
// If holding a modifier would result in no valid values, ignore
|
||||
// Need to use filter instead of if-let chains for 1.85 compatibility.
|
||||
// Need to use filter instead of if-let chains for 1.86 compatibility.
|
||||
if let Some(new_allowed) =
|
||||
NonZeroU32::new(allowed & !DROPEFFECT_MOVE).filter(|_| key_state & MK_CONTROL != 0)
|
||||
{
|
||||
@@ -672,7 +672,7 @@ fn pick_effect(actions: &[DndAction], key_state: u32, source_allowed: u32) -> u3
|
||||
}
|
||||
|
||||
// If holding a modifier would result in no valid values, ignore
|
||||
// Need to use filter instead of if-let chains for 1.85 compatibility.
|
||||
// Need to use filter instead of if-let chains for 1.86 compatibility.
|
||||
if let Some(new_allowed) =
|
||||
NonZeroU32::new(allowed & !DROPEFFECT_COPY).filter(|_| key_state & MK_SHIFT != 0)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user