-
Notifications
You must be signed in to change notification settings - Fork 68
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
Implement FromTypeParam #30
Conversation
(Actually I have a feeling that lots of code can be reused in this crate...) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is looking good; thanks for submitting it! I've left a couple hopefully-small items. If you could look at those and consider adding a new example, I think we'll be good to go!
pub attrs: Option<&'a Ident>, | ||
pub attr_names: Vec<&'a str>, | ||
pub forward_attrs: Option<&'a ForwardAttrs>, | ||
pub from_ident: bool, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
For the reason mentioned on #29, please use Option<bool>
here.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'll look at this after we merge.
} | ||
|
||
#[test] | ||
fn expand_many() { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you add a test with a defaulted type please?
One more thought: |
That can be in a followup change. Also type param can have magic fields for things like |
This fixes TedDriggs#28.
This fixes #28.