diff options
Diffstat (limited to 'azalea-brigadier/src/modifier.rs')
| -rw-r--r-- | azalea-brigadier/src/modifier.rs | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/azalea-brigadier/src/modifier.rs b/azalea-brigadier/src/modifier.rs index 84528696..c1a9aaf0 100644 --- a/azalea-brigadier/src/modifier.rs +++ b/azalea-brigadier/src/modifier.rs @@ -4,6 +4,9 @@ use crate::{ context::CommandContext, exceptions::command_syntax_exception::CommandSyntaxException, }; -pub trait RedirectModifier<S: Any + Clone> { - fn apply(&self, context: &CommandContext<S>) -> Result<Vec<Rc<S>>, 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>; |
