Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

command(parse_with = ) doesn't support functions in modules #668

Closed
jelni opened this issue Jun 29, 2022 · 0 comments · Fixed by teloxide/teloxide-macros#27
Closed

command(parse_with = ) doesn't support functions in modules #668

jelni opened this issue Jun 29, 2022 · 0 comments · Fixed by teloxide/teloxide-macros#27
Assignees
Labels
K-bug Kind: bug

Comments

@jelni
Copy link

jelni commented Jun 29, 2022

I tried this code:

#[command(parse_with = "parsers::some_parser")]

I expected to see this happen:
A command created with the parsers::some_parser parser.

Instead, this happened:
The compiler panicked

thread 'rustc' panicked at '`"parsers::tweet"` is not a valid identifier'

Meta

  • teloxide 0.9.2
  • rustc 1.64.0-nightly
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
K-bug Kind: bug
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants