aboutsummaryrefslogtreecommitdiff
path: root/azalea-brigadier/src/arguments
diff options
context:
space:
mode:
authormat <github@matdoes.dev>2022-01-13 20:08:53 -0600
committermat <github@matdoes.dev>2022-01-13 20:08:53 -0600
commit760816c81fab414cc42ab1e75506fc816bcf9681 (patch)
treee5a52f4f90969ed06db0b81a0fe37e7a94fdca53 /azalea-brigadier/src/arguments
parenteb111be1f107696939b994f5de6e060cf972a732 (diff)
downloadazalea-drasl-760816c81fab414cc42ab1e75506fc816bcf9681.tar.xz
stuff
Diffstat (limited to 'azalea-brigadier/src/arguments')
-rw-r--r--azalea-brigadier/src/arguments/argument_type.rs7
1 files changed, 4 insertions, 3 deletions
diff --git a/azalea-brigadier/src/arguments/argument_type.rs b/azalea-brigadier/src/arguments/argument_type.rs
index 3d1b1168..37cc9354 100644
--- a/azalea-brigadier/src/arguments/argument_type.rs
+++ b/azalea-brigadier/src/arguments/argument_type.rs
@@ -1,3 +1,5 @@
+use std::any::Any;
+
use super::bool_argument_type::BoolArgumentType;
use crate::{
context::command_context::CommandContext,
@@ -31,8 +33,7 @@ impl Types for BrigadierTypes {
}
*/
-#[clonable]
-pub trait ArgumentType: Clone {
+pub trait ArgumentType {
type Into;
// T parse(StringReader reader) throws CommandSyntaxException;
@@ -49,7 +50,7 @@ pub trait ArgumentType: Clone {
fn list_suggestions<S>(
&self,
context: &CommandContext<S>,
- builder: &mut SuggestionsBuilder,
+ builder: &SuggestionsBuilder,
) -> Result<Suggestions, CommandSyntaxException>
where
Self: Sized,