Bump MSRV to 1.86

This commit is contained in:
Ian Douglas Scott
2026-07-23 08:58:23 -07:00
committed by Kirill Chibisov
parent 0ea5f3c875
commit 0e7ed677f1
5 changed files with 15 additions and 15 deletions

View File

@@ -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)
{