aboutsummaryrefslogtreecommitdiff
path: root/azalea-brigadier/src/parse_results.rs
diff options
context:
space:
mode:
authormat <github@matdoes.dev>2023-05-05 19:37:40 +0000
committermat <github@matdoes.dev>2023-05-05 19:37:40 +0000
commite4176937f0584a6bcc5aba15abb1e2df6ddf588d (patch)
treee6db91c492702a66ebe45bc66553f23a547bd93e /azalea-brigadier/src/parse_results.rs
parentdf167a5a391ef2a9bf2290a24d99ef8f559d9084 (diff)
downloadazalea-drasl-e4176937f0584a6bcc5aba15abb1e2df6ddf588d.tar.xz
remove more unnecessary brigadier cloning!
Diffstat (limited to 'azalea-brigadier/src/parse_results.rs')
-rwxr-xr-xazalea-brigadier/src/parse_results.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/azalea-brigadier/src/parse_results.rs b/azalea-brigadier/src/parse_results.rs
index 3698ae82..aa7d79ea 100755
--- a/azalea-brigadier/src/parse_results.rs
+++ b/azalea-brigadier/src/parse_results.rs
@@ -4,13 +4,13 @@ use crate::{
};
use std::{collections::HashMap, fmt::Debug, rc::Rc};
-pub struct ParseResults<S> {
- pub context: CommandContextBuilder<S>,
+pub struct ParseResults<'a, S> {
+ pub context: CommandContextBuilder<'a, S>,
pub reader: StringReader,
pub exceptions: HashMap<Rc<CommandNode<S>>, CommandSyntaxException>,
}
-impl<S> Debug for ParseResults<S> {
+impl<S> Debug for ParseResults<'_, S> {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
f.debug_struct("ParseResults")
.field("context", &self.context)