Skip to content

make the pattern arg optional #254

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

Merged
merged 1 commit into from
Dec 29, 2024
Merged

make the pattern arg optional #254

merged 1 commit into from
Dec 29, 2024

Conversation

sunshowers
Copy link
Member

Use a tt-muncher to make the "pattern" argument optional.

I tried adding support for reordering arguments, but the macro got pretty complicated and I had trouble handling the optional trailing comma. Reordering arguments would be much easier with a proc macro.

Copy link

codecov bot commented Dec 29, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 85.84%. Comparing base (ad12f63) to head (d4cb423).
Report is 2 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #254      +/-   ##
==========================================
- Coverage   86.05%   85.84%   -0.22%     
==========================================
  Files           4        4              
  Lines         459      452       -7     
==========================================
- Hits          395      388       -7     
  Misses         64       64              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Use a tt-muncher to make the "pattern" argument optional.

I tried adding support for reordering arguments, but the macro got pretty
complicated and I had trouble handling the optional trailing comma. Reordering
arguments would be much easier with a proc macro.
@sunshowers sunshowers merged commit e020341 into main Dec 29, 2024
9 checks passed
@sunshowers sunshowers deleted the pattern-optional branch December 29, 2024 00:56
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.

1 participant