#Does anyone know how to suppress warnings that occurs in the derive tag?

4 messages · Page 1 of 1 (latest)

sinful ginkgo
#

I tried putting an #[allow(unused_must_use)] on top of the #[derive(...)] but it does not work, tried googling, not much help

daring oriole
#

Hey, does the warning also appear when running the project with cargo directly on the terminal? Sometimes it's just a RA (Rust-Analyser) issue

daring oriole
#

Then I'd suggesting allowing it a the root mod level, and report the issue to the maintainers:

mod foo {
#![allow(unused_must_use)]
#[derive(...)]
}