all: use trait upcasting
This commit is contained in:
parent
f0caafc862
commit
09e5f89174
44 changed files with 90 additions and 269 deletions
|
|
@ -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)]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue