From 60b129b3a62b66dd389d1775892405fe735b9540 Mon Sep 17 00:00:00 2001 From: mat Date: Mon, 10 Jan 2022 20:29:46 -0600 Subject: progress --- azalea-brigadier/src/tree/root_command_node.rs | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'azalea-brigadier/src/tree/root_command_node.rs') diff --git a/azalea-brigadier/src/tree/root_command_node.rs b/azalea-brigadier/src/tree/root_command_node.rs index 004ab6a8..25a5a4b2 100644 --- a/azalea-brigadier/src/tree/root_command_node.rs +++ b/azalea-brigadier/src/tree/root_command_node.rs @@ -12,12 +12,12 @@ use crate::{ use super::command_node::{BaseCommandNode, CommandNode}; #[derive(Hash, PartialEq, Eq, Debug, Clone)] -pub struct RootCommandNode { +pub struct RootCommandNode<'a, S, T> { // Since Rust doesn't have extending, we put the struct this is extending as the "base" field - pub base: BaseCommandNode, + pub base: BaseCommandNode<'a, S, T>, } -impl CommandNode for RootCommandNode { +impl CommandNode for RootCommandNode<'_, S, T> { fn name(&self) -> &str { "" } @@ -25,13 +25,13 @@ impl CommandNode for RootCommandNode { fn parse( &self, reader: StringReader, - context_builder: CommandContextBuilder, + context_builder: CommandContextBuilder, ) -> Result<(), CommandSyntaxException> { } fn list_suggestions( &self, - context: CommandContext, + context: CommandContext, builder: SuggestionsBuilder, ) -> Result { Suggestions::empty() @@ -54,7 +54,7 @@ impl CommandNode for RootCommandNode { } } -impl Display for RootCommandNode<()> { +impl Display for RootCommandNode<'_, S, T> { fn fmt(&self, f: &mut Formatter<'_>) -> std::fmt::Result { write!(f, "") } -- cgit v1.2.3