aboutsummaryrefslogtreecommitdiff
path: root/azalea-brigadier/src/context/parsed_command_node.rs
diff options
context:
space:
mode:
authormat <github@matdoes.dev>2022-01-11 00:01:47 -0600
committermat <github@matdoes.dev>2022-01-11 00:01:47 -0600
commitcc4fe62fc82842e0bde628437a45d55c6a82f1f3 (patch)
tree9248cb03406681f81d6d29a0878220fbe1e836e2 /azalea-brigadier/src/context/parsed_command_node.rs
parent60b129b3a62b66dd389d1775892405fe735b9540 (diff)
downloadazalea-drasl-cc4fe62fc82842e0bde628437a45d55c6a82f1f3.tar.xz
adfsfasdfaSDQAWERTERYTUYghyubnjnrdfxcv etgvbhy0ujn-
Diffstat (limited to 'azalea-brigadier/src/context/parsed_command_node.rs')
-rw-r--r--azalea-brigadier/src/context/parsed_command_node.rs9
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 }
}