1
0
Fork 0
forked from wry/wry

all: clear more reference cycles at shutdown

This commit is contained in:
Julian Orth 2024-05-02 21:16:53 +02:00
parent 4d33dbf32f
commit 3473b89fb9
7 changed files with 76 additions and 9 deletions

View file

@ -24,6 +24,9 @@ linear_ids!(DrmDeviceIds, DrmDeviceId);
pub trait Backend {
fn run(self: Rc<Self>) -> SpawnedFuture<Result<(), Box<dyn Error>>>;
fn clear(&self) {
// nothing
}
#[cfg_attr(not(feature = "it"), allow(dead_code))]
fn into_any(self: Rc<Self>) -> Rc<dyn Any>;