tomaka / rouille

Web framework in Rust
Apache License 2.0
1.09k stars 105 forks source link

Compiler cannot determine that only one branch of `router!` macro runs #221

Open Diggsey opened 4 years ago

Diggsey commented 4 years ago

The router! macro expands to a series of if statements instead of an if ... else if ... else chain or a match statement. This means that the compiler cannot tell that only a single handler can run, and so the compiler will complain about values being used multiple times if they are moved into route handlers.

Diggsey commented 4 years ago

edit: NVM