diff options
| author | mat <github@matdoes.dev> | 2022-07-31 18:05:41 -0500 |
|---|---|---|
| committer | mat <github@matdoes.dev> | 2022-07-31 18:05:41 -0500 |
| commit | 69f97dbf02e5422ee796492a3633a4e8f3f09d2d (patch) | |
| tree | 0727d5dd604e49135e2265690856c36ce28792e4 /azalea-brigadier/src/builder/argument_builder.rs | |
| parent | 0cf8f82994db643e13ec90074bd1c2c92c6e67fb (diff) | |
| download | azalea-drasl-69f97dbf02e5422ee796492a3633a4e8f3f09d2d.tar.xz | |
clippo the sequel
Diffstat (limited to 'azalea-brigadier/src/builder/argument_builder.rs')
| -rwxr-xr-x | azalea-brigadier/src/builder/argument_builder.rs | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/azalea-brigadier/src/builder/argument_builder.rs b/azalea-brigadier/src/builder/argument_builder.rs index d26b2a8a..38ccc98c 100755 --- a/azalea-brigadier/src/builder/argument_builder.rs +++ b/azalea-brigadier/src/builder/argument_builder.rs @@ -1,4 +1,8 @@ -use crate::{context::CommandContext, modifier::RedirectModifier, tree::CommandNode}; +use crate::{ + context::CommandContext, + modifier::RedirectModifier, + tree::{Command, CommandNode}, +}; use super::{literal_argument_builder::Literal, required_argument_builder::Argument}; use std::{cell::RefCell, fmt::Debug, rc::Rc}; @@ -13,7 +17,7 @@ pub enum ArgumentBuilderType { pub struct ArgumentBuilder<S> { arguments: CommandNode<S>, - command: Option<Rc<dyn Fn(&CommandContext<S>) -> i32>>, + command: Command<S>, requirement: Rc<dyn Fn(Rc<S>) -> bool>, target: Option<Rc<RefCell<CommandNode<S>>>>, |
