Skip to content

Commit 8a9dd33

Browse files
removing as_any func
1 parent 058223f commit 8a9dd33

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

src/setup/states.rs

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ use owo_colors::{AnsiColors, OwoColorize};
1818
use std::fmt::Debug;
1919
use std::fmt::{Display, Write};
2020
use std::hash::Hash;
21+
use std::any::Any;
2122

2223
use super::db_metadata;
2324
use 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

232228
impl ResourceSetupStatus for Box<dyn ResourceSetupStatus> {

0 commit comments

Comments
 (0)