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

Use impl Trait instead of explicit generics #278

Merged
merged 3 commits into from
Jan 3, 2024

Conversation

spenserblack
Copy link
Owner

This cleans up the code a bit by simplifying some of the syntax, not not
declaring explicit generics where they don't need to be declared.

This is a breaking change because:

  • The implementation of a public trait has changed
  • The turbofish cannot be used on methods that use "anonymous" generics

This cleans up the code a bit by simplifying some of the syntax, not not
declaring explicit generics where they don't need to be declared.

This is a breaking change because:
- The implementation of a public trait has changed
- The turbofish cannot be used on methods that use "anonymous" generics
@spenserblack spenserblack added the semver-major This pull request bumps the major version label Jan 3, 2024
@spenserblack spenserblack linked an issue Jan 3, 2024 that may be closed by this pull request
Copy link

codecov bot commented Jan 3, 2024

Codecov Report

Attention: 1 lines in your changes are missing coverage. Please review.

Comparison is base (6e4517f) 87.89% compared to head (8d52349) 87.89%.

Files Patch % Lines
gengo/src/error.rs 0.00% 1 Missing ⚠️
Additional details and impacted files
@@           Coverage Diff           @@
##             main     #278   +/-   ##
=======================================
  Coverage   87.89%   87.89%           
=======================================
  Files          17       17           
  Lines         595      595           
=======================================
  Hits          523      523           
  Misses         72       72           
Flag Coverage Δ
87.89% <97.29%> (ø)
macOS-latest 87.45% <97.14%> (-0.20%) ⬇️
ubuntu-latest 84.79% <97.29%> (+1.92%) ⬆️
windows-latest ?

Flags with carried forward coverage won't be shown. Click here to find out more.

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

@spenserblack spenserblack enabled auto-merge (squash) January 3, 2024 17:39
@spenserblack spenserblack merged commit 57ab2f0 into main Jan 3, 2024
11 checks passed
@spenserblack spenserblack deleted the refactor/263/generic-constraints branch January 3, 2024 18:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
semver-major This pull request bumps the major version
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Replace <T: Trait>(arg: T) syntax with (arg: impl Trait)
1 participant