diff --git a/src/consts/champion.rs b/src/consts/champion.rs index 58e462d..761cb60 100644 --- a/src/consts/champion.rs +++ b/src/consts/champion.rs @@ -1,9 +1,9 @@ -/////////////////////////////////////////////// -// // -// ! // -// This file is automatically generated! // -// Do not directly edit! // -// // +/////////////////////////////////////////////// +// // +// ! // +// This file is automatically generated! // +// Do not directly edit! // +// // /////////////////////////////////////////////// use num_enum::{ IntoPrimitive, TryFromPrimitive }; diff --git a/src/consts/queue_type.rs b/src/consts/queue_type.rs index 5f09042..5f3fa67 100644 --- a/src/consts/queue_type.rs +++ b/src/consts/queue_type.rs @@ -1,7 +1,7 @@ use strum_macros::{ EnumString, Display, AsRefStr, IntoStaticStr }; /// LoL or TFT ranked queue types. -#[cfg_attr(feature = "nightly", non_exhaustive)] +#[non_exhaustive] #[derive(Debug, Copy, Clone)] #[derive(Eq, PartialEq, Hash)] #[derive(EnumString, Display, AsRefStr, IntoStaticStr)] diff --git a/src/lib.rs b/src/lib.rs index 8b822da..8c8469a 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -1,4 +1,3 @@ -#![cfg_attr(feature = "nightly", feature(non_exhaustive))] #![cfg_attr(feature = "nightly", feature(external_doc))] #![forbid(unsafe_code)] diff --git a/srcgen/consts/champion.rs.dt b/srcgen/consts/champion.rs.dt index 51941c1..7442179 100644 --- a/srcgen/consts/champion.rs.dt +++ b/srcgen/consts/champion.rs.dt @@ -24,7 +24,7 @@ use strum_macros::{ EnumString, EnumIter, Display, AsRefStr, IntoStaticStr }; /// NAME (`IDENTIFIER`, ID). /// /// Implements [IntoEnumIterator](super::IntoEnumIterator). -#[cfg_attr(feature = "nightly", non_exhaustive)] +#[non_exhaustive] #[derive(Debug, Copy, Clone)] #[derive(IntoPrimitive, TryFromPrimitive)] #[derive(Serialize_repr, Deserialize_repr)] diff --git a/srcgen/consts/game_mode.rs.dt b/srcgen/consts/game_mode.rs.dt index 22c1d8e..00cebbe 100644 --- a/srcgen/consts/game_mode.rs.dt +++ b/srcgen/consts/game_mode.rs.dt @@ -7,7 +7,7 @@ use strum_macros::{ EnumString, Display, AsRefStr, IntoStaticStr }; /// League of Legends game mode, such as Classic, /// ARAM, URF, One For All, Ascension, etc. -#[cfg_attr(feature = "nightly", non_exhaustive)] +#[non_exhaustive] #[derive(Debug, Copy, Clone)] #[derive(Eq, PartialEq, Hash)] #[derive(EnumString, Display, AsRefStr, IntoStaticStr)] diff --git a/srcgen/consts/map.rs.dt b/srcgen/consts/map.rs.dt index 0b0e9b8..f377318 100644 --- a/srcgen/consts/map.rs.dt +++ b/srcgen/consts/map.rs.dt @@ -7,7 +7,7 @@ use serde_repr::{ Serialize_repr, Deserialize_repr }; use num_enum::{ IntoPrimitive, TryFromPrimitive }; /// League of Legends maps. -#[cfg_attr(feature = "nightly", non_exhaustive)] +#[non_exhaustive] #[derive(Debug, Copy, Clone)] #[derive(Eq, PartialEq, Hash, PartialOrd, Ord)] #[derive(Serialize_repr, Deserialize_repr)] diff --git a/srcgen/consts/queue.rs.dt b/srcgen/consts/queue.rs.dt index c6a14ff..e1b880f 100644 --- a/srcgen/consts/queue.rs.dt +++ b/srcgen/consts/queue.rs.dt @@ -7,7 +7,7 @@ use serde_repr::{ Serialize_repr, Deserialize_repr }; use num_enum::{ IntoPrimitive, TryFromPrimitive }; /// League of Legends matchmaking queue. -#[cfg_attr(feature = "nightly", non_exhaustive)] +#[non_exhaustive] #[derive(Debug, Copy, Clone)] #[derive(Eq, PartialEq)] #[derive(Serialize_repr, Deserialize_repr)] diff --git a/srcgen/consts/season.rs.dt b/srcgen/consts/season.rs.dt index 9b0e844..5242db8 100644 --- a/srcgen/consts/season.rs.dt +++ b/srcgen/consts/season.rs.dt @@ -7,7 +7,7 @@ use serde_repr::{ Serialize_repr, Deserialize_repr }; use num_enum::{ IntoPrimitive, TryFromPrimitive }; /// League of Legends matchmaking seasons. -#[cfg_attr(feature = "nightly", non_exhaustive)] +#[non_exhaustive] #[derive(Debug, Copy, Clone)] #[derive(Eq, PartialEq, Hash, PartialOrd, Ord)] #[derive(Serialize_repr, Deserialize_repr)]