shepmaster / snafu

Easily assign underlying errors into domain-specific errors while adding context
https://docs.rs/snafu/
Apache License 2.0
1.4k stars 60 forks source link

Check for and warn about attributes on the field of a tuple struct #350

Closed shepmaster closed 9 months ago

shepmaster commented 1 year ago

You can write

#[derive(Debug, Snafu)]
struct Opaque(
    #[snafu(...)]
    InnerError
);

This has no meaning and is unlikely that anyone does it, but should be warned against.