all: clear more reference cycles at shutdown
This commit is contained in:
parent
4d33dbf32f
commit
3473b89fb9
7 changed files with 76 additions and 9 deletions
|
|
@ -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>;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue