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

deps #158

Merged
merged 14 commits into from
Jul 26, 2023
Merged

deps #158

merged 14 commits into from
Jul 26, 2023

Conversation

jordens
Copy link
Member

@jordens jordens commented Jul 25, 2023

  • reorg features
  • syn 2

@jordens jordens marked this pull request as ready for review July 25, 2023 18:46
for attr in field.attrs.iter() {
if attr.path().is_ident("miniconf") {
attr.parse_nested_meta(|meta| {
if meta.path.is_ident("defer") {
Copy link
Member

@ryan-summers ryan-summers Jul 26, 2023

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?

Copy link
Member Author

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)

@ryan-summers ryan-summers merged commit 398b20a into main Jul 26, 2023
14 checks passed
@ryan-summers ryan-summers deleted the deps branch July 26, 2023 08:26
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