File tree Expand file tree Collapse file tree 1 file changed +2
-6
lines changed
Expand file tree Collapse file tree 1 file changed +2
-6
lines changed Original file line number Diff line number Diff line change @@ -18,6 +18,7 @@ use owo_colors::{AnsiColors, OwoColorize};
1818use std:: fmt:: Debug ;
1919use std:: fmt:: { Display , Write } ;
2020use std:: hash:: Hash ;
21+ use std:: any:: Any ;
2122
2223use super :: db_metadata;
2324use crate :: execution:: db_tracking_setup:: {
@@ -218,15 +219,10 @@ pub enum SetupChangeType {
218219 Invalid ,
219220}
220221
221- pub trait ResourceSetupStatus : Send + Sync + Debug + ' static {
222+ pub trait ResourceSetupStatus : Send + Sync + Debug + Any {
222223 fn describe_changes ( & self ) -> Vec < String > ;
223224
224225 fn change_type ( & self ) -> SetupChangeType ;
225-
226- // Workaround as Rust doesn't support dyn upcasting before 1.86.
227- // (https://github.com/rust-lang/rust/issues/65991)
228- // Can be replaced by a `Any` bound when we require Rust 1.86 or newer.
229- fn as_any ( & self ) -> & dyn Any ;
230226}
231227
232228impl ResourceSetupStatus for Box < dyn ResourceSetupStatus > {
You can’t perform that action at this time.
0 commit comments