Browse Source

Rustfmt

pull/63/head
TechiePi 2 years ago
parent
commit
1bf8c582d6
  1. 8
      ctru-rs/src/services/cfgu.rs

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

@ -149,7 +149,7 @@ macro_rules! from_type_to_u8 { @@ -149,7 +149,7 @@ macro_rules! from_type_to_u8 {
v as u8
}
}
}
};
}
from_type_to_u8!(Region);
@ -168,7 +168,7 @@ impl TryFrom<u8> for Region { @@ -168,7 +168,7 @@ impl TryFrom<u8> for Region {
ctru_sys::CFG_REGION_CHN => Ok(Region::China),
ctru_sys::CFG_REGION_KOR => Ok(Region::Korea),
ctru_sys::CFG_REGION_TWN => Ok(Region::Taiwan),
_ => Err(())
_ => Err(()),
}
}
}
@ -190,7 +190,7 @@ impl TryFrom<u8> for Language { @@ -190,7 +190,7 @@ impl TryFrom<u8> for Language {
ctru_sys::CFG_LANGUAGE_PT => Ok(Language::Portuguese),
ctru_sys::CFG_LANGUAGE_RU => Ok(Language::Russian),
ctru_sys::CFG_LANGUAGE_TW => Ok(Language::TraditionalChinese),
_ => Err(())
_ => Err(()),
}
}
}
@ -206,7 +206,7 @@ impl TryFrom<u8> for SystemModel { @@ -206,7 +206,7 @@ impl TryFrom<u8> for SystemModel {
ctru_sys::CFG_MODEL_2DS => Ok(SystemModel::Model2DS),
ctru_sys::CFG_MODEL_N3DSXL => Ok(SystemModel::ModelNew3DSXL),
ctru_sys::CFG_MODEL_N2DSXL => Ok(SystemModel::ModelNew2DSXL),
_ => Err(())
_ => Err(()),
}
}
}
Loading…
Cancel
Save