Fix clippy warning

This commit is contained in:
Jonathan Johnson 2023-12-31 07:51:10 -08:00
parent d739ef1b79
commit be483a92bd
No known key found for this signature in database
GPG key ID: A66D6A34D6620579

View file

@ -243,7 +243,7 @@ impl Tree {
// For any widgets that were shared, remove them, as they don't
// need to have their events fired again.
let mut new_index = 0;
while !old_hovered.is_empty() && old_hovered.get(0) == hovered.get(new_index) {
while !old_hovered.is_empty() && old_hovered.first() == hovered.get(new_index) {
old_hovered.remove(0);
new_index += 1;
}