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, 9 insertions, 0 deletions
diff --git a/azalea-brigadier/src/context/parsed_command_node.rs b/azalea-brigadier/src/context/parsed_command_node.rs index 14168a06..c0be355c 100644 --- a/azalea-brigadier/src/context/parsed_command_node.rs +++ b/azalea-brigadier/src/context/parsed_command_node.rs @@ -19,3 +19,12 @@ impl<S, T> ParsedCommandNode<S, T> { &self.range } } + +impl<S, T> Clone for ParsedCommandNode<S, T> { + fn clone_from(&mut self, source: &Self) { + Self { + node: self.node.clone(), + range: self.range.clone(), + } + } +} |
