mirror of
https://github.com/rust-windowing/winit.git
synced 2026-08-29 04:40:04 -04:00
Mark platform extension enums as #[non_exhaustive]
OS-defined sets and error enums in the platform crates can now gain variants without a breaking change.
This commit is contained in:
@@ -334,6 +334,7 @@ impl WindowExtMacOS for dyn Window + '_ {
|
||||
/// Corresponds to `NSApplicationActivationPolicy`.
|
||||
#[derive(Debug, Default, Clone, Copy, PartialEq, Eq, Hash)]
|
||||
#[cfg_attr(feature = "serde", derive(Serialize, Deserialize))]
|
||||
#[non_exhaustive]
|
||||
pub enum ActivationPolicy {
|
||||
/// Corresponds to `NSApplicationActivationPolicyRegular`.
|
||||
#[default]
|
||||
|
||||
Reference in New Issue
Block a user