diff --git a/crates/ui-egui/src/lib.rs b/crates/ui-egui/src/lib.rs index ba54404ab..59e418dfd 100644 --- a/crates/ui-egui/src/lib.rs +++ b/crates/ui-egui/src/lib.rs @@ -833,11 +833,7 @@ impl SheetApp { } else { "This workbook contains VBA macros. GridCraft keeps them when you save as .xlsm, but does not run them." }; - self.notice = Some(Notice { - text: text.into(), - kind: NoticeKind::Warning, - action: Some(("What this means".into(), "macros".into())), - }); + self.notice = Some(Notice { text: text.into(), kind: NoticeKind::Warning, action: Some(("What this means".into(), "macros".into())) }); } else { let text = if msgs.len() == 1 { msgs[0].to_string() diff --git a/crates/ui-egui/tests/interaction.rs b/crates/ui-egui/tests/interaction.rs index 0b1d5c42e..5d0907c39 100644 --- a/crates/ui-egui/tests/interaction.rs +++ b/crates/ui-egui/tests/interaction.rs @@ -784,10 +784,7 @@ fn opening_a_macro_workbook_shows_a_notice() { #[test] fn dropped_macro_warning_never_promises_to_keep_macros() { let mut h = harness(blank()); - for w in [ - "macros (VBA project) reference a missing part and were dropped", - "macros (VBA project) could not be read and were dropped: bad zip", - ] { + for w in ["macros (VBA project) reference a missing part and were dropped", "macros (VBA project) could not be read and were dropped: bad zip"] { h.state_mut().show_open_warnings(&json!({"warnings": [w]})); let n = h.state().notice.clone().unwrap(); assert_eq!(n.kind, gridcraft_ui_egui::NoticeKind::Warning);