diff --git a/src/lib/commands/src/arg/parser/int.rs b/src/lib/commands/src/arg/parser/int.rs index f22074f5..e8f4a715 100644 --- a/src/lib/commands/src/arg/parser/int.rs +++ b/src/lib/commands/src/arg/parser/int.rs @@ -16,7 +16,7 @@ impl ArgumentParser for IntParser { fn parse(&self, _ctx: Arc, input: Arc>) -> ParserResult { let token = input.lock().unwrap().read_string(); - match token.parse::() { + match token.parse::() { Ok(int) => Ok(Box::new(int)), Err(err) => Err(error(err)), } diff --git a/src/lib/commands/src/tests.rs b/src/lib/commands/src/tests.rs index 24287bef..709bc060 100644 --- a/src/lib/commands/src/tests.rs +++ b/src/lib/commands/src/tests.rs @@ -79,7 +79,7 @@ async fn arg_parse_test() { #[tokio::test] async fn parse_test() { async fn test_executor(ctx: Arc) -> CommandResult { - let num = ctx.arg::("number"); + let num = ctx.arg::("number"); assert_eq!(num.to_string(), ctx.input.lock().unwrap().input); Ok(()) } diff --git a/src/lib/default_commands/src/nested.rs b/src/lib/default_commands/src/nested.rs index 3a00136e..74487df4 100644 --- a/src/lib/default_commands/src/nested.rs +++ b/src/lib/default_commands/src/nested.rs @@ -31,11 +31,11 @@ async fn root(ctx: Arc) -> CommandResult { async fn abc(ctx: Arc) -> CommandResult { let message = ctx.arg::("message"); let word = ctx.arg::("word"); - let number = ctx.arg::("number"); + let number = ctx.arg::("number"); ctx.reply( TextComponentBuilder::new(format!( - "Message: {message:?}, Word: {word:?}, Message: {number}" + "Message: {message:?}, Word: {word:?}, Number: {number}" )) .build(), )