From 206aab8bbad201a38d99d60502a2619a5b0a2175 Mon Sep 17 00:00:00 2001 From: "Dylan M. Taylor" Date: Tue, 3 Nov 2026 13:33:37 +0000 Subject: [PATCH] engine: pass the test run's text by value --- crates/engine/src/spell.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/engine/src/spell.rs b/crates/engine/src/spell.rs index 5159e2f67..0eeaa6757 100644 --- a/crates/engine/src/spell.rs +++ b/crates/engine/src/spell.rs @@ -977,7 +977,7 @@ SFX D Y 1\nSFX D 0 ed/S .\n"; // a repeat, and no word carries a copy of the value. let lang = "x".repeat(1 << 20); let p = - Paragraph { runs: vec![Run::with(&"the ".repeat(100_000), RunProps { lang: Some(lang), ..Default::default() })], ..Default::default() }; + Paragraph { runs: vec![Run::with("the ".repeat(100_000), RunProps { lang: Some(lang), ..Default::default() })], ..Default::default() }; let words = paragraph_words(&p, "en-US"); assert_eq!(words.len(), 100_000); assert!(words.iter().all(|w| w.lang.is_empty()));