trust + fix redraw bug
This commit is contained in:
@@ -56,11 +56,6 @@ impl<State, W: ?Sized> WidgetHandle<State, W> {
|
||||
}
|
||||
}
|
||||
|
||||
pub fn as_any(&self) -> &WidgetHandle<State, dyn Widget<State>> {
|
||||
// SAFETY: self is repr(C) and generic only used for phantom data
|
||||
unsafe { std::mem::transmute(self) }
|
||||
}
|
||||
|
||||
pub fn id(&self) -> WidgetId {
|
||||
self.id
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user