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

Remove visibility check to enable pub on underlying #66

Merged
merged 1 commit into from
Apr 14, 2024
Merged

Conversation

yunjhongwu
Copy link
Owner

#65

This enables construction like

#[derive(StrongType)]
struct Timestamp(pub i64);

let timestamp = Timestamp(1701620628123456789);
println!("{}", timestamp); // Timestamp(1701620628123456789)

@yunjhongwu yunjhongwu merged commit e712376 into main Apr 14, 2024
1 check passed
@yunjhongwu yunjhongwu deleted the allow-pub branch April 14, 2024 16:25
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

Successfully merging this pull request may close these issues.

None yet

1 participant