aboutsummaryrefslogtreecommitdiff
path: root/azalea-brigadier/src/parse_results.rs
diff options
context:
space:
mode:
authormat <git@matdoes.dev>2026-05-06 18:38:23 -0545
committermat <git@matdoes.dev>2026-05-07 08:05:58 -1200
commitcabc8b60a729ba17f5b75f7a7956c6d1ddcc8919 (patch)
tree237fd12a9768fe7431ce42dfbdde60f4c7850e06 /azalea-brigadier/src/parse_results.rs
parent9ffd0e80bbb3feace231553d6539124585b03e3c (diff)
downloadazalea-drasl-cabc8b60a729ba17f5b75f7a7956c6d1ddcc8919.tar.xz
azalea-brigadier now allows commands to return a Result
Diffstat (limited to 'azalea-brigadier/src/parse_results.rs')
-rw-r--r--azalea-brigadier/src/parse_results.rs8
1 files changed, 4 insertions, 4 deletions
diff --git a/azalea-brigadier/src/parse_results.rs b/azalea-brigadier/src/parse_results.rs
index 7d3cf98a..f77b0b6f 100644
--- a/azalea-brigadier/src/parse_results.rs
+++ b/azalea-brigadier/src/parse_results.rs
@@ -9,13 +9,13 @@ use crate::{
tree::CommandNode,
};
-pub struct ParseResults<'a, S> {
- pub context: CommandContextBuilder<'a, S>,
+pub struct ParseResults<'a, S, R> {
+ pub context: CommandContextBuilder<'a, S, R>,
pub reader: StringReader,
- pub exceptions: HashMap<Rc<CommandNode<S>>, CommandSyntaxError>,
+ pub exceptions: HashMap<Rc<CommandNode<S, R>>, CommandSyntaxError>,
}
-impl<S> Debug for ParseResults<'_, S> {
+impl<S, R> Debug for ParseResults<'_, S, R> {
fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
f.debug_struct("ParseResults")
.field("context", &self.context)