chore: Replace as_any functions with trait upcasting (#28221)

Closes #ISSUE

Release Notes:

- N/A
This commit is contained in:
Piotr Osiewicz 2025-04-08 22:16:27 +02:00 committed by GitHub
parent 38ec45008c
commit 0b75c13034
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
13 changed files with 23 additions and 87 deletions

View file

@ -1,5 +1,4 @@
use std::{
any::Any,
cell::{Cell, RefCell},
rc::Rc,
};
@ -85,8 +84,4 @@ impl ScrollableHandle for TerminalScrollHandle {
),
)
}
fn as_any(&self) -> &dyn Any {
self
}
}