1
2
Fork 0
mirror of https://github.com/mat-1/azalea.git synced 2025-08-02 14:26:04 +00:00

fix CommandDispatcher::default

This commit is contained in:
mat 2023-05-05 23:31:27 -05:00
parent f825544e27
commit 084953b89f

View file

@ -11,7 +11,6 @@ use crate::{
use std::{cmp::Ordering, collections::HashMap, mem, rc::Rc, sync::Arc};
/// The root of the command tree. You need to make this to register commands.
#[derive(Default)]
pub struct CommandDispatcher<S>
where
Self: Sync + Send,
@ -278,3 +277,9 @@ impl<S> CommandDispatcher<S> {
// Ok(if forked { successful_forks } else { result })
}
}
impl<S> Default for CommandDispatcher<S> {
fn default() -> Self {
Self::new()
}
}