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

@ -49,10 +49,6 @@ macro_rules! object_base {
$version
}
fn into_any($self: std::rc::Rc<Self>) -> std::rc::Rc<dyn std::any::Any> {
$self
}
fn handle_request(
$self: std::rc::Rc<Self>,
client: &crate::client::Client,
@ -458,14 +454,6 @@ macro_rules! fatal {
}}
}
macro_rules! stacked_node_impl {
() => {
fn stacked_into_node(self: Rc<Self>) -> Rc<dyn Node> {
self
}
};
}
macro_rules! bitflags {
($name:ident: $rep:ty; $($var:ident = $val:expr,)*) => {
#[derive(Copy, Clone, Eq, PartialEq, Default)]