DioxusLabs / DioxusLabs/dioxus

Take advantage of trait upcasting to remove `as_any` and `as_any_mut` methods

Open
#5,129 0 comments 0 reactions 0 assignees View on GitHub
core
Dominant language
Rust
Stars
39.1k
Forks
1.9k
Avg merge
4d 10h
Merged PRs (30d)
4

Description

Recent versions of rustc allow a trait object created from a trait that has `Any` as a supertrait to be upcasted into a `dyn Any`. We can use this instead of custom `as_any` and `as_any_mut` methods.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.