1
0
Fork 0
mirror of https://github.com/jugeeya/UltimateTrainingModpack.git synced 2024-11-20 00:46:34 +00:00

Format Rust code using rustfmt

This commit is contained in:
github-actions[bot] 2022-12-18 21:49:48 +00:00 committed by GitHub
parent c7457cf0fd
commit c8349005c3
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -263,7 +263,10 @@ pub unsafe fn save_states(module_accessor: &mut app::BattleObjectModuleAccessor)
// All articles have ID <= 0x25 // All articles have ID <= 0x25
(0..=0x25) (0..=0x25)
// Don't remove crafting table // Don't remove crafting table
.filter(|article_idx| !(fighter_kind == *FIGHTER_KIND_PICKEL && *article_idx == *FIGHTER_PICKEL_GENERATE_ARTICLE_TABLE)) .filter(|article_idx| {
!(fighter_kind == *FIGHTER_KIND_PICKEL
&& *article_idx == *FIGHTER_PICKEL_GENERATE_ARTICLE_TABLE)
})
.for_each(|article_idx| { .for_each(|article_idx| {
if ArticleModule::is_exist(module_accessor, article_idx) { if ArticleModule::is_exist(module_accessor, article_idx) {
let article: u64 = ArticleModule::get_article(module_accessor, article_idx); let article: u64 = ArticleModule::get_article(module_accessor, article_idx);