O'Reilly logo
  • James Newsome thinks this is interesting:

router.get("/", get_form, "root"); router.post("/gcd", post_gcd, "gcd");

From

Cover of Programming Rust

Note

I had to remove the third parameter from these calls. Before doing so I got:

error[E0061]: this function takes 2 parameters but 3 parameters were supplied
--> src/main.rs:11:16
|
11 | router.get("/", get_form, "root");
| ^^^^^^^^^^^^^^^^^^^^^
|
= note: the following parameter types were expected:
= note: _, _