1
0
Fork 0
forked from wry/wry

all: use trait upcasting

This commit is contained in:
Julian Orth 2025-04-03 16:47:24 +02:00
parent f0caafc862
commit 09e5f89174
44 changed files with 90 additions and 269 deletions

View file

@ -6,7 +6,7 @@ use {
},
video::drm::ConnectorType,
},
std::{any::Any, error::Error, rc::Rc},
std::{error::Error, rc::Rc},
};
pub struct DummyBackend;
@ -15,10 +15,6 @@ impl Backend for DummyBackend {
fn run(self: Rc<Self>) -> SpawnedFuture<Result<(), Box<dyn Error>>> {
unreachable!();
}
fn into_any(self: Rc<Self>) -> Rc<dyn Any> {
self
}
}
pub struct DummyOutput {