diff options
Diffstat (limited to 'azalea-brigadier/src/context/parsed_command_node.rs')
| -rw-r--r-- | azalea-brigadier/src/context/parsed_command_node.rs | 12 |
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(), |
