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:
parent
f825544e27
commit
084953b89f
1 changed files with 6 additions and 1 deletions
|
@ -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()
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue