aboutsummaryrefslogtreecommitdiff
path: root/azalea-brigadier/src/parse_results.rs
diff options
context:
space:
mode:
authormat <github@matdoes.dev>2022-04-17 20:46:43 -0500
committermat <github@matdoes.dev>2022-04-17 20:46:43 -0500
commitd68233e0b1ff61d09ab2c4e22a42f3326054539b (patch)
treed40d421eca3695fd594c1a0b1589af09c59e1f84 /azalea-brigadier/src/parse_results.rs
parentaf4b0d0add23188ab00e89a216cd3db62074cf7e (diff)
downloadazalea-drasl-d68233e0b1ff61d09ab2c4e22a42f3326054539b.tar.xz
simplify the <S> generic so it's not an Rc
Diffstat (limited to 'azalea-brigadier/src/parse_results.rs')
-rw-r--r--azalea-brigadier/src/parse_results.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/azalea-brigadier/src/parse_results.rs b/azalea-brigadier/src/parse_results.rs
index fb862dec..e5db0400 100644
--- a/azalea-brigadier/src/parse_results.rs
+++ b/azalea-brigadier/src/parse_results.rs
@@ -4,13 +4,13 @@ use crate::{
};
use std::{any::Any, collections::HashMap, fmt::Debug, rc::Rc};
-pub struct ParseResults<S: Any + Clone> {
+pub struct ParseResults<S> {
pub context: CommandContextBuilder<S>,
pub reader: StringReader,
pub exceptions: HashMap<Rc<CommandNode<S>>, CommandSyntaxException>,
}
-impl<S: Any + Clone> 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)