Skip to content

World's first open-source enterprise world model.

The caption check passes its closure by value, as clippy on Rust 1.99 asks (#1041)

WaylandYang3175b1db5ffb
diff --git a/crates/utopia-ingest/src/chunker.rs b/crates/utopia-ingest/src/chunker.rs
index b964d606..bbbb625c 100644
--- a/crates/utopia-ingest/src/chunker.rs
+++ b/crates/utopia-ingest/src/chunker.rs
@@ -113,7 +113,7 @@ fn units(text: &str, blocks: Vec<Block>) -> Vec<Unit> {
|| text[blk.range.clone()].trim_end().ends_with(':'))
};
let mut k = i + 1;
- while k - i < CAPTION_RUN_MAX && blocks.get(k).is_some_and(&caption_like) {
+ while k - i < CAPTION_RUN_MAX && blocks.get(k).is_some_and(caption_like) {
k += 1;
}
let caption = b.range.start..blocks[k - 1].range.end;