Use TypeId of () for Column and Row tags in iced_pure

This commit is contained in:
Héctor Ramón Jiménez 2022-02-11 23:40:24 +07:00
parent af122265f6
commit 8b27083cda
No known key found for this signature in database
GPG key ID: 140CC052C94F138E
2 changed files with 2 additions and 4 deletions

View file

@ -78,8 +78,7 @@ where
Renderer: iced_native::Renderer,
{
fn tag(&self) -> any::TypeId {
struct Marker;
any::TypeId::of::<Marker>()
any::TypeId::of::<()>()
}
fn state(&self) -> Box<dyn Any> {

View file

@ -78,8 +78,7 @@ where
Renderer: iced_native::Renderer,
{
fn tag(&self) -> any::TypeId {
struct Marker;
any::TypeId::of::<Marker>()
any::TypeId::of::<()>()
}
fn state(&self) -> Box<dyn Any> {