mcarton/rust-derivative

Enum: Unknown attribute "format_with" for trait Debug

Opened this issue · 0 comments

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?