mcarton / rust-derivative

A set of alternative `derive` attributes for Rust
Apache License 2.0
420 stars 46 forks source link

Enum: Unknown attribute "format_with" for trait Debug #91

Open simonsilvalauinger opened 3 years ago

simonsilvalauinger commented 3 years ago

Trying to use format_with for Debug within an enum, leads into this error.

grafik

use derivative::*;
#[derive(Derivative)]
#[derivative(Debug)]
#[repr(u8)]
enum Enum {
    #[derivative(Debug(format_with = "hex_fmt"))]
    A,
}

Is there a chance to fix this?