diff options
| author | mat <git@matdoes.dev> | 2026-05-06 18:38:23 -0545 |
|---|---|---|
| committer | mat <git@matdoes.dev> | 2026-05-07 08:05:58 -1200 |
| commit | cabc8b60a729ba17f5b75f7a7956c6d1ddcc8919 (patch) | |
| tree | 237fd12a9768fe7431ce42dfbdde60f4c7850e06 /azalea-brigadier/src/context/parsed_command_node.rs | |
| parent | 9ffd0e80bbb3feace231553d6539124585b03e3c (diff) | |
| download | azalea-drasl-cabc8b60a729ba17f5b75f7a7956c6d1ddcc8919.tar.xz | |
azalea-brigadier now allows commands to return a Result
Diffstat (limited to 'azalea-brigadier/src/context/parsed_command_node.rs')
| -rw-r--r-- | azalea-brigadier/src/context/parsed_command_node.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/azalea-brigadier/src/context/parsed_command_node.rs b/azalea-brigadier/src/context/parsed_command_node.rs index 62da13d8..8dbadb49 100644 --- a/azalea-brigadier/src/context/parsed_command_node.rs +++ b/azalea-brigadier/src/context/parsed_command_node.rs @@ -6,12 +6,12 @@ use super::string_range::StringRange; use crate::tree::CommandNode; #[derive(Debug)] -pub struct ParsedCommandNode<S> { - pub node: Arc<RwLock<CommandNode<S>>>, +pub struct ParsedCommandNode<S, R> { + pub node: Arc<RwLock<CommandNode<S, R>>>, pub range: StringRange, } -impl<S> Clone for ParsedCommandNode<S> { +impl<S, R> Clone for ParsedCommandNode<S, R> { fn clone(&self) -> Self { Self { node: self.node.clone(), |
