Integration: cargo fmt

This commit is contained in:
aiongg
2026-10-22 02:57:51 +00:00
parent 7221e11f56
commit d056570d97
2 changed files with 2 additions and 9 deletions
+1 -5
View File
@@ -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()
+1 -4
View File
@@ -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);