Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
simonsilvalauinger opened this issue Mar 26, 2021 · 0 comments
Open

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

simonsilvalauinger opened this issue Mar 26, 2021 · 0 comments

Comments

@simonsilvalauinger
Copy link

simonsilvalauinger commented Mar 26, 2021

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant