mirror of
https://github.com/rwf2/Rocket.git
synced 2025-01-09 11:09:08 +00:00
bd26ca462a
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. |
||
---|---|---|
.. | ||
codegen | ||
http | ||
lib |