Teacup rim text: Difference between revisions

m
Rust - simplified code
m (Rust - use containers of references in find_teacup_words to avoid unnecessary copying)
m (Rust - simplified code)
Line 1,552:
for _ in 1..len {
chars.rotate_left(1);
matchif let Some(w) = dict.get(&String::from_iter(&chars)) {
Some(if !w.eq(word) =>&& !teacup_words.contains(&w) {
if !w.eq(word) && !teacup_words.containspush(&w) {;
teacup_words.push(w);
}
}
None => {
is_teacup_word = false;
break;
}
} else }{
Noneis_teacup_word => {false;
}break;
}
}
1,777

edits