orbtk_core: impl From<PopupRenderObject> for popup render_object
* PupupRenderObject trait:
when implementing From<PopupRenderObject> we gain
Into<Box<dyn RenderOBject>> for free
* clippy will be happy as well
@@ -119,9 +119,9 @@ impl Default for PopupRenderObject {
}
}
-impl Into<Box<dyn RenderObject>> for PopupRenderObject {
- fn into(self) -> Box<dyn RenderObject> {
- Box::new(self)
+impl From<PopupRenderObject> for Box<dyn RenderObject> {
+ fn from(box_value: PopupRenderObject) -> Self {
+ Box::new(box_value)
}
}
