From c8349005c34d1fbec24f526c9cb076d2b9d46a33 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Sun, 18 Dec 2022 21:49:48 +0000 Subject: [PATCH] Format Rust code using rustfmt --- src/training/save_states.rs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/training/save_states.rs b/src/training/save_states.rs index 485bb0e..d4e751b 100644 --- a/src/training/save_states.rs +++ b/src/training/save_states.rs @@ -263,7 +263,10 @@ pub unsafe fn save_states(module_accessor: &mut app::BattleObjectModuleAccessor) // All articles have ID <= 0x25 (0..=0x25) // 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| { if ArticleModule::is_exist(module_accessor, article_idx) { let article: u64 = ArticleModule::get_article(module_accessor, article_idx);