From 084953b89fa800d275b7f712d339f89056e48645 Mon Sep 17 00:00:00 2001 From: mat Date: Fri, 5 May 2023 23:31:27 -0500 Subject: fix CommandDispatcher::default --- azalea-brigadier/src/command_dispatcher.rs | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/azalea-brigadier/src/command_dispatcher.rs b/azalea-brigadier/src/command_dispatcher.rs index 384a28dd..a14b5009 100755 --- a/azalea-brigadier/src/command_dispatcher.rs +++ b/azalea-brigadier/src/command_dispatcher.rs @@ -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 where Self: Sync + Send, @@ -278,3 +277,9 @@ impl CommandDispatcher { // Ok(if forked { successful_forks } else { result }) } } + +impl Default for CommandDispatcher { + fn default() -> Self { + Self::new() + } +} -- cgit v1.2.3