aboutsummaryrefslogtreecommitdiff
path: root/azalea-brigadier/src/context/parsed_command_node.rs
diff options
context:
space:
mode:
authorUbuntu <github@matdoes.dev>2022-01-13 00:43:09 +0000
committerUbuntu <github@matdoes.dev>2022-01-13 00:43:09 +0000
commiteb111be1f107696939b994f5de6e060cf972a732 (patch)
tree055deab4179088c5e91a179bfe465a7859c45ab6 /azalea-brigadier/src/context/parsed_command_node.rs
parent270507736af57aae6801dc9eb3c3132139d0d07b (diff)
downloadazalea-drasl-eb111be1f107696939b994f5de6e060cf972a732.tar.xz
a
Diffstat (limited to 'azalea-brigadier/src/context/parsed_command_node.rs')
-rw-r--r--azalea-brigadier/src/context/parsed_command_node.rs12
1 files changed, 6 insertions, 6 deletions
diff --git a/azalea-brigadier/src/context/parsed_command_node.rs b/azalea-brigadier/src/context/parsed_command_node.rs
index c0be355c..16c6ed8b 100644
--- a/azalea-brigadier/src/context/parsed_command_node.rs
+++ b/azalea-brigadier/src/context/parsed_command_node.rs
@@ -1,17 +1,17 @@
use super::string_range::StringRange;
use crate::tree::command_node::CommandNode;
-pub struct ParsedCommandNode<S, T> {
- node: Box<dyn CommandNode<S, T>>,
+pub struct ParsedCommandNode<S> {
+ node: Box<dyn CommandNode<S>>,
range: StringRange,
}
-impl<S, T> ParsedCommandNode<S, T> {
- fn new(node: dyn CommandNode<S, T>, range: StringRange) -> Self {
+impl<S> ParsedCommandNode<S> {
+ fn new(node: dyn CommandNode<S>, range: StringRange) -> Self {
Self { node, range }
}
- fn node(&self) -> &dyn CommandNode<S, T> {
+ fn node(&self) -> &dyn CommandNode<S> {
&self.node
}
@@ -20,7 +20,7 @@ impl<S, T> ParsedCommandNode<S, T> {
}
}
-impl<S, T> Clone for ParsedCommandNode<S, T> {
+impl<S> Clone for ParsedCommandNode<S> {
fn clone_from(&mut self, source: &Self) {
Self {
node: self.node.clone(),