actix-web/actix-web-codegen/tests/trybuild
lberrymage 272099d0f4
Rename `HttpResponse` httpcode methods to snake_case
It's Rust convention for method names to be in snake case, so much so
that the compiler emits a warning by default for non-snake-case methods.
Reading something like `HttpResponse::Ok()` leads me to believe that I'm
creating an instance of the `Ok` variant of a `HttpResponse` enum, but
for some reason there's no associated data (which _is_ possible, there's
just no reason to define an enum that way).

There are other cases of #[allow(non_snake_case)] in the actix codebase,
but this commit only addresses the `HttpResponse::XXX()` methods.
2021-01-14 23:40:29 -09:00
..
route-duplicate-method-fail.rs prepare codegen 0.4.0 release (#1702) 2020-09-24 23:54:01 +01:00
route-duplicate-method-fail.stderr prepare codegen 0.4.0 release (#1702) 2020-09-24 23:54:01 +01:00
route-missing-method-fail.rs prepare codegen 0.4.0 release (#1702) 2020-09-24 23:54:01 +01:00
route-missing-method-fail.stderr prepare codegen 0.4.0 release (#1702) 2020-09-24 23:54:01 +01:00
route-ok.rs prepare codegen 0.4.0 release (#1702) 2020-09-24 23:54:01 +01:00
route-unexpected-method-fail.rs prepare codegen 0.4.0 release (#1702) 2020-09-24 23:54:01 +01:00
route-unexpected-method-fail.stderr prepare codegen 0.4.0 release (#1702) 2020-09-24 23:54:01 +01:00
simple-fail.rs prepare codegen 0.4.0 release (#1702) 2020-09-24 23:54:01 +01:00
simple-fail.stderr Unify route macros (#1705) 2020-09-22 22:42:51 +01:00
simple.rs Rename `HttpResponse` httpcode methods to snake_case 2021-01-14 23:40:29 -09:00