-
-
Notifications
You must be signed in to change notification settings - Fork 301
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
Duplicate handlers do not cause a compilation error #126
Comments
I cannot detect duplicate paths at compile time, but I can panic at runtime. |
@sunli829 Is it possible to make this panic happen when starting the application? |
Yes. If there are duplicate paths, a panic will occur when starting the application. 🙂 |
Released in |
Something is still not working. Here I have an example of such duplicate handlers: When I run cargo run, the server gets up (no panic). And it should panic with a message that "GET /fun1" is duplicated |
This can be detected in the macro, I forgot to do this. 🙂 |
Fixed in |
Fantastic. It works perfectly. Thank you very much :) |
Expected Behavior
I would expect that the macro would not allow this code to compile
Actual Behavior
When we have duplicate handlers, the code compiles.
Steps to Reproduce the Problem
Specifications
The text was updated successfully, but these errors were encountered: