remove requirement for type args on subcommand

This commit is contained in:
Aiden McClelland
2024-05-03 23:43:27 -06:00
parent cbbeea0495
commit 0603928164
2 changed files with 7 additions and 8 deletions

View File

@@ -119,7 +119,7 @@ fn make_api<C: Context>() -> ParentHandler<C> {
donde: String,
}
ParentHandler::<C>::new()
.subcommand::<C, _>(
.subcommand(
"echo",
from_fn_async(
|c: ServerContext, EchoParams { next }: EchoParams| async move {