mirror of
https://github.com/storytold/gridcraft.git
synced 2026-10-24 10:46:50 -06:00
Integration: cargo fmt
This commit is contained in:
@@ -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()
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user