-
Notifications
You must be signed in to change notification settings - Fork 3
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
deps #158
deps #158
Conversation
jordens
commented
Jul 25, 2023
- reorg features
- syn 2
for attr in field.attrs.iter() { | ||
if attr.path().is_ident("miniconf") { | ||
attr.parse_nested_meta(|meta| { | ||
if meta.path.is_ident("defer") { |
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.
The existing style, while some code overhead, was intended to make it easy to add new attributes while making it relatively maintainable. This is less code, but does it make it easier to easily add new attributes in the future?
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.
It's just another if
, i.e. about five lines.
Same amount as in the old code (c.f. https://github.com/quartiq/miniconf/pull/150/files#diff-1857dc627a1f48fd67d28c8ed2d35e53994fe4b9d71ee181c034cc98a30bd163)