aboutsummaryrefslogtreecommitdiff
path: root/azalea-brigadier/src/context/parsed_command_node.rs
diff options
context:
space:
mode:
Diffstat (limited to 'azalea-brigadier/src/context/parsed_command_node.rs')
-rw-r--r--azalea-brigadier/src/context/parsed_command_node.rs10
1 files changed, 5 insertions, 5 deletions
diff --git a/azalea-brigadier/src/context/parsed_command_node.rs b/azalea-brigadier/src/context/parsed_command_node.rs
index 98e99959..a006aa4b 100644
--- a/azalea-brigadier/src/context/parsed_command_node.rs
+++ b/azalea-brigadier/src/context/parsed_command_node.rs
@@ -2,17 +2,17 @@ use super::string_range::StringRange;
use crate::tree::command_node::CommandNode;
#[derive(Hash, PartialEq, Eq, Debug, Clone)]
-pub struct ParsedCommandNode<S> {
- node: dyn CommandNode<S>,
+pub struct ParsedCommandNode<'a, S, T> {
+ node: &'a dyn CommandNode<S, T>,
range: StringRange,
}
-impl<S> ParsedCommandNode<S> {
- fn new(node: dyn CommandNode<S>, range: StringRange) -> Self {
+impl<S, T> ParsedCommandNode<'_, S, T> {
+ fn new(node: &dyn CommandNode<S, T>, range: StringRange) -> Self {
Self { node, range }
}
- fn node(&self) -> &dyn CommandNode<S> {
+ fn node(&self) -> &dyn CommandNode<S, T> {
&self.node
}