diff options
| author | mat <git@matdoes.dev> | 2026-05-06 18:38:23 -0545 |
|---|---|---|
| committer | mat <git@matdoes.dev> | 2026-05-07 08:05:58 -1200 |
| commit | cabc8b60a729ba17f5b75f7a7956c6d1ddcc8919 (patch) | |
| tree | 237fd12a9768fe7431ce42dfbdde60f4c7850e06 /azalea-brigadier/src/modifier.rs | |
| parent | 9ffd0e80bbb3feace231553d6539124585b03e3c (diff) | |
| download | azalea-drasl-cabc8b60a729ba17f5b75f7a7956c6d1ddcc8919.tar.xz | |
azalea-brigadier now allows commands to return a Result
Diffstat (limited to 'azalea-brigadier/src/modifier.rs')
| -rw-r--r-- | azalea-brigadier/src/modifier.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/azalea-brigadier/src/modifier.rs b/azalea-brigadier/src/modifier.rs index aba5e95f..90be22db 100644 --- a/azalea-brigadier/src/modifier.rs +++ b/azalea-brigadier/src/modifier.rs @@ -2,5 +2,5 @@ use std::sync::Arc; use crate::{context::CommandContext, errors::CommandSyntaxError}; -pub type RedirectModifier<S> = - dyn Fn(&CommandContext<S>) -> Result<Vec<Arc<S>>, CommandSyntaxError> + Send + Sync; +pub type RedirectModifier<S, R> = + dyn Fn(&CommandContext<S, R>) -> Result<Vec<Arc<S>>, CommandSyntaxError> + Send + Sync; |
