Format the import budget check

This commit is contained in:
Codex committed 2026-11-30 13:39:42 +01:00
1 parent aeae489395
commit dc59589135
1 file changed
+3 -1
+3 -1
View File
@@ -404,7 +404,9 @@ fn joined_by_two(word: &str, by: &[Arc<Holder>]) -> bool {
by.iter().map(Arc::as_ref).any(|(at, (a, b), first)| {
let Some(head) = first.last().filter(|h| word.len() > h.len() && word.starts_with(h.as_str())) else { return false };
let tail = &word[head.len()..];
by.iter().map(Arc::as_ref).any(|(next, _, second)| (next.x - at.x) * a + (next.y - at.y) * b > 0.0 && second.first().is_some_and(|w| w == tail))
by.iter()
.map(Arc::as_ref)
.any(|(next, _, second)| (next.x - at.x) * a + (next.y - at.y) * b > 0.0 && second.first().is_some_and(|w| w == tail))
})
}