diff options
Diffstat (limited to 'azalea-brigadier/src/context/parsed_command_node.rs')
| -rw-r--r-- | azalea-brigadier/src/context/parsed_command_node.rs | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/azalea-brigadier/src/context/parsed_command_node.rs b/azalea-brigadier/src/context/parsed_command_node.rs index a006aa4b..14168a06 100644 --- a/azalea-brigadier/src/context/parsed_command_node.rs +++ b/azalea-brigadier/src/context/parsed_command_node.rs @@ -1,14 +1,13 @@ use super::string_range::StringRange; use crate::tree::command_node::CommandNode; -#[derive(Hash, PartialEq, Eq, Debug, Clone)] -pub struct ParsedCommandNode<'a, S, T> { - node: &'a dyn CommandNode<S, T>, +pub struct ParsedCommandNode<S, T> { + node: Box<dyn CommandNode<S, T>>, range: StringRange, } -impl<S, T> ParsedCommandNode<'_, S, T> { - fn new(node: &dyn CommandNode<S, T>, range: StringRange) -> Self { +impl<S, T> ParsedCommandNode<S, T> { + fn new(node: dyn CommandNode<S, T>, range: StringRange) -> Self { Self { node, range } } |
