shepmaster / snafu

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

`context(false)` help text is wrong / misleading #240

Closed shepmaster closed 4 years ago

shepmaster commented 4 years ago
#[derive(Debug, Snafu)]
pub enum Error {
    Example {
        #[snafu(context(false))]
        source: SomeError,
    },
}
error: `context` attribute is only valid on enum variant fields, not on a field

That should say "on enum variants"