fix(menu_bar): temporarily allow invalid reference cast

This commit is contained in:
wiiznokes 2024-01-05 20:57:55 +01:00 committed by GitHub
parent 4674e4b23e
commit 0e0aed9bde
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -211,6 +211,7 @@ where
self.height
}
#[allow(invalid_reference_casting)]
fn diff(&mut self, tree: &mut Tree) {
if tree.children.len() > self.menu_roots.len() {
tree.children.truncate(self.menu_roots.len());