Browse Source

Apply suggestions (IV)

pull/63/head
TechiePi 2 years ago
parent
commit
0dbf85db4c
  1. 6
      ctru-rs/src/services/cfgu.rs

6
ctru-rs/src/services/cfgu.rs

@ -2,7 +2,7 @@
//! //!
//! This module contains basic methods to retrieve and change configuration from the console. //! This module contains basic methods to retrieve and change configuration from the console.
#[derive(Clone, Debug)] #[derive(Copy, Clone, Debug)]
#[repr(u32)] #[repr(u32)]
pub enum Region { pub enum Region {
Japan = ctru_sys::CFG_REGION_JPN, Japan = ctru_sys::CFG_REGION_JPN,
@ -14,7 +14,7 @@ pub enum Region {
Taiwan = ctru_sys::CFG_REGION_TWN, Taiwan = ctru_sys::CFG_REGION_TWN,
} }
#[derive(Clone, Debug)] #[derive(Copy, Clone, Debug)]
#[repr(u32)] #[repr(u32)]
pub enum Language { pub enum Language {
Japan = ctru_sys::CFG_LANGUAGE_JP, Japan = ctru_sys::CFG_LANGUAGE_JP,
@ -31,7 +31,7 @@ pub enum Language {
TraditionalChinese = ctru_sys::CFG_LANGUAGE_TW, TraditionalChinese = ctru_sys::CFG_LANGUAGE_TW,
} }
#[derive(Clone, Debug)] #[derive(Copy, Clone, Debug)]
#[repr(u32)] #[repr(u32)]
pub enum SystemModel { pub enum SystemModel {
Model3DS = ctru_sys::CFG_MODEL_3DS, Model3DS = ctru_sys::CFG_MODEL_3DS,

Loading…
Cancel
Save