Skip to content

Deprecate ResourceSetupStatus::as_any()Β #576

@badmonster0

Description

@badmonster0

ResourceSetupStatus has an as_any() method, mainly as a workaround for Rust not supporting dyn upcasting.

// Workaround as Rust doesn't support dyn upcasting before 1.86.
// (https://github.com/rust-lang/rust/issues/65991)
// Can be replaced by a `Any` bound when we require Rust 1.86 or newer.
fn as_any(&self) -> &dyn Any;

The support in Rust has been stabilized in Rust v1.86, so we can remove it and use dyn upcasting to convert it to Any when needed.

Metadata

Metadata

Assignees

Labels

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions