Skip to content

Let struct visibility to be same as module #177

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

Merged
merged 2 commits into from
Oct 30, 2018

Conversation

h-michael
Copy link
Member

feature #77

let module_visibility = match module_visibility {
Some("pub") => syn::VisPublic { pub_token: <Token![pub]>::default() }.into(),
Some("private") => syn::Visibility::Inherited {},
_ => syn::VisPublic { pub_token: <Token![pub]>::default() }.into(),
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Restricted(VisRestricted) needs complex variables.
So I implement pub and private at first for cli.

Copy link
Member

@tomhoule tomhoule left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good, thanks for implementing this!

@tomhoule
Copy link
Member

We just need a rebase and this will be merged.

@h-michael
Copy link
Member Author

@tomhoule I've rebased it!

@h-michael
Copy link
Member Author

Nightly build is failed, because of hyperium/hyper#1688.

@tomhoule
Copy link
Member

Sorry for the delay :/ I'll merge anyway.

@tomhoule tomhoule merged commit a0b2f1e into graphql-rust:master Oct 30, 2018
@h-michael h-michael deleted the visibility branch October 30, 2018 08:27
@h-michael
Copy link
Member Author

@tomhoule
Thank you for taking the time out of your busy schedule to review.

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.

2 participants