From 1f64de48b9f632b1c943fee03b08fa2c7dc31a32 Mon Sep 17 00:00:00 2001 From: Codex Bot Date: Tue, 20 Oct 2026 13:56:25 +0800 Subject: [PATCH] test: initialize snapshot state in the struct literal --- src/endor_host.rs | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/endor_host.rs b/src/endor_host.rs index 18bd3ac..6eb847f 100644 --- a/src/endor_host.rs +++ b/src/endor_host.rs @@ -455,8 +455,10 @@ paint(ui.text("last"))"#; #[test] fn page_api_errors_and_late_failures_do_not_publish_partial_snapshots() { - let mut state = NamespaceState::default(); - state.submission = 1; + let mut state = NamespaceState { + submission: 1, + ..NamespaceState::default() + }; state .commit(1, compile(PAGE, "app.main", 1).unwrap()) .unwrap();