mirror of
https://github.com/storytold/vectorcraft.git
synced 2026-12-01 02:35:37 +01:00
Format the import budget check
This commit is contained in:
1 parent
aeae489395
commit
dc59589135
1 file changed
+3
-1
@@ -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))
|
||||
})
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user