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

Derive Display Should infer display provided from the the struct field annotation. #346

Open
da2ce7 opened this issue Apr 5, 2024 · 1 comment

Comments

@da2ce7
Copy link

da2ce7 commented Apr 5, 2024

// Working

#[derive(Display)]
#[display(fmt = "A")]
struct A;

#[derive(Display)]
struct B {
    a: A,
}
// Not Working

struct A;

#[derive(Display)]
struct B {
    #[display(fmt = "A")]
    a: A,
}
@JelteF
Copy link
Owner

JelteF commented Apr 6, 2024

Did you check this with version 1.0.0-beta.6?

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

2 participants