Rename Drawable::boxed to into_element and make containers generic

Multi-element are now generic over any drawable child, which can be converted
into an element.

Co-Authored-By: Nathan Sobo <nathan@zed.dev>
Co-Authored-By: Max Brunsfeld <max@zed.dev>
This commit is contained in:
Antonio Scandurra
2023-04-21 12:43:19 -06:00
committed by Nathan Sobo
co-authored by Nathan Sobo Max Brunsfeld
parent 4d433663bd
commit 03619dfa55
80 changed files with 1132 additions and 1434 deletions
+1 -1
View File
@@ -973,7 +973,7 @@ pub mod tests {
position,
height,
disposition,
render: Arc::new(|_| Empty::new().boxed()),
render: Arc::new(|_| Empty::new().into_element()),
}
})
.collect::<Vec<_>>();