aboutsummaryrefslogtreecommitdiff
path: root/azalea-brigadier/src/modifier.rs
diff options
context:
space:
mode:
authormat <github@matdoes.dev>2022-04-17 21:38:57 -0500
committermat <github@matdoes.dev>2022-04-17 21:38:57 -0500
commit1d28c7cfb5260b7c7905fb5561ffcc7ceead1b77 (patch)
tree5e37f4842d4ae107dd6ba627736299dea854a33a /azalea-brigadier/src/modifier.rs
parentd68233e0b1ff61d09ab2c4e22a42f3326054539b (diff)
downloadazalea-drasl-1d28c7cfb5260b7c7905fb5561ffcc7ceead1b77.tar.xz
forking stuff
Diffstat (limited to 'azalea-brigadier/src/modifier.rs')
-rw-r--r--azalea-brigadier/src/modifier.rs6
1 files changed, 1 insertions, 5 deletions
diff --git a/azalea-brigadier/src/modifier.rs b/azalea-brigadier/src/modifier.rs
index c1a9aaf0..68a3304e 100644
--- a/azalea-brigadier/src/modifier.rs
+++ b/azalea-brigadier/src/modifier.rs
@@ -1,12 +1,8 @@
-use std::{any::Any, rc::Rc};
+use std::rc::Rc;
use crate::{
context::CommandContext, exceptions::command_syntax_exception::CommandSyntaxException,
};
-// pub trait RedirectModifier<S> {
-// fn apply(&self, context: &CommandContext<S>) -> Result<Vec<S>, CommandSyntaxException>;
-// }
-
pub type RedirectModifier<S> =
dyn Fn(&CommandContext<S>) -> Result<Vec<Rc<S>>, CommandSyntaxException>;