From 65db56a47129f6f1e2190addfc4783e4f0a86e9a Mon Sep 17 00:00:00 2001 From: aiongg Date: Sun, 11 Oct 2026 12:20:13 +0000 Subject: [PATCH] Integration: swatch references bump the story revision with wrapping_add #456 makes every story revision increment wrap; next's swatch_refs.rs (added after the PR's base) still used rev += 1. --- crates/doc/src/swatch_refs.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/doc/src/swatch_refs.rs b/crates/doc/src/swatch_refs.rs index 32ba7bc9d..08ea2ea2a 100644 --- a/crates/doc/src/swatch_refs.rs +++ b/crates/doc/src/swatch_refs.rs @@ -137,7 +137,7 @@ impl Names<'_> { for t in st.tables.values_mut() { self.table(Arc::make_mut(t)); } - st.rev += 1; + st.rev = st.rev.wrapping_add(1); } }