aboutsummaryrefslogtreecommitdiff
path: root/azalea-brigadier/src/modifier.rs
diff options
context:
space:
mode:
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>;