Skip to content

Use new trait upcasting (Rust v1.86.0) #367

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
jetuk opened this issue Apr 3, 2025 · 0 comments
Open

Use new trait upcasting (Rust v1.86.0) #367

jetuk opened this issue Apr 3, 2025 · 0 comments
Labels
core Relates to the pywr-core crate

Comments

@jetuk
Copy link
Member

jetuk commented Apr 3, 2025

Rust v1.86.0 (released today) introduces trait upcasting. This would allow several as_any and as_any_mut methods to be removed. For example:

fn as_any(&self) -> &dyn Any;

@jetuk jetuk added the core Relates to the pywr-core crate label Apr 3, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
core Relates to the pywr-core crate
Projects
None yet
Development

No branches or pull requests

1 participant