Rocket/core/codegen
Sergio Benitez bd26ca462a Introduce #[suppress]: suppress Rocket lints.
Adding `#[suppress(lint)]` for a known `lint` suppresses the
corresponding warning generated by Rocket's codegen. The lints are:

  * `unknown_format`
  * `dubious_payload`
  * `segment_chars`
  * `arbitrary_main`
  * `sync_spawn`

For example, the following works as expected to suppress the warning
generated by the unknown media type "application/foo":

```rust
fn post_foo() -> &'static str { "post_foo" }
```

Resolves #1188.
2024-03-21 20:24:53 -07:00
..
src Introduce #[suppress]: suppress Rocket lints. 2024-03-21 20:24:53 -07:00
tests Introduce #[suppress]: suppress Rocket lints. 2024-03-21 20:24:53 -07:00
Cargo.toml Clean up codebase: fix reasonable clippy warnings. 2024-03-20 00:47:38 -07:00