Skip to content

parse: fix the handle_match_driver type#257

Merged
schopin-pro merged 1 commit intocanonical:mainfrom
schopin-pro:fix-driver-match-signature
Feb 2, 2022
Merged

parse: fix the handle_match_driver type#257
schopin-pro merged 1 commit intocanonical:mainfrom
schopin-pro:fix-driver-match-signature

Conversation

@schopin-pro
Copy link
Contributor

The YAML_NO_NODE type marker means that the callback called is via the
.variable union field, not .generic. Since this is a union type, and
both callbacks have the same signature for now, it works, but future
evolutions of the code will make those signatures evolve independently,
leading to hard-to-debug issues.

Checklist

  • Runs make check successfully.
  • Retains 100% code coverage (make check-coverage).

The YAML_NO_NODE type marker means that the callback called is via the
`.variable` union field, not `.generic`. Since this is a union type, and
both callbacks have the same signature for now, it works, but future
evolutions of the code will make those signatures evolve independently,
leading to hard-to-debug issues.
Copy link
Contributor

@slyon slyon left a comment

Choose a reason for hiding this comment

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

LGTM!

@schopin-pro schopin-pro merged commit 9336443 into canonical:main Feb 2, 2022
@schopin-pro schopin-pro deleted the fix-driver-match-signature branch May 5, 2022 10:05
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