Skip to content

Release 0.2.0

Compare
Choose a tag to compare
@github-actions github-actions released this 27 May 04:35
· 42 commits to main since this release
v0.2.0
f7895a2

This release is primarily aimed at ensuring generated code passes lints.

Breaking changes

  • Renamed TreeMatcher::set_input_type() to TreeMatcher::input_type().

Changes

  • Made sure generated functions pass Clippy’s pedantic lint group:
    • Changed to add #[must_use] to generated functions by default.
    • Added trivial documentation about what errors are returned by a few
      functions.
    • Disabled clippy::single_match_else lint within generated match
      functions, since we sometimes generate match statements with a single arm.
    • Disabled clippy::too_many_lines lint within generated match
      functions, since such functions can be extremely long.
  • Added support for setting documentation on generated functions. This also adds
    docs to the stub function used in disabled Clippy mode which allows it to be
    used with #![warn(missing_docs)].