aboutsummaryrefslogtreecommitdiff
path: root/azalea-brigadier/src/builder
diff options
context:
space:
mode:
authormat <github@matdoes.dev>2022-07-31 18:05:41 -0500
committermat <github@matdoes.dev>2022-07-31 18:05:41 -0500
commit69f97dbf02e5422ee796492a3633a4e8f3f09d2d (patch)
tree0727d5dd604e49135e2265690856c36ce28792e4 /azalea-brigadier/src/builder
parent0cf8f82994db643e13ec90074bd1c2c92c6e67fb (diff)
downloadazalea-drasl-69f97dbf02e5422ee796492a3633a4e8f3f09d2d.tar.xz
clippo the sequel
Diffstat (limited to 'azalea-brigadier/src/builder')
-rwxr-xr-xazalea-brigadier/src/builder/argument_builder.rs8
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>>>>,