rocket

Attribute Macro suppress

Source
#[suppress]
Expand description

Suppress a warning generated by a Rocket lint.

Lints:

  • unknown_format
  • dubious_payload
  • segment_chars
  • arbitrary_main
  • sync_spawn

ยงExample


#[suppress(dubious_payload)]
#[get("/", data = "<_a>")]
fn _f(_a: String) { }

#[get("/", data = "<_a>", format = "foo/bar")]
#[suppress(dubious_payload, unknown_format)]
fn _g(_a: String) { }