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

Revert "Fix clippy: match expr looks like matches! macro" #27

Merged
merged 2 commits into from
Jan 27, 2021

Conversation

dcroote
Copy link
Contributor

@dcroote dcroote commented Jan 26, 2021

This reverts commit 91fc873, which was a part of #16.

It turns out that the matches! macro that clippy suggested was only stabilized in 1.42 (2020-03-12). It is probably safer to revert in order to avoid breaking older code, which happened here: rust-bio/rust-bio#410

This reverts commit 91fc873.

The matches! macro was only stabilized in 1.42. Reverting in order to
avoid breaking older code.
@coveralls
Copy link

coveralls commented Jan 26, 2021

Pull Request Test Coverage Report for Build 514288415

  • 7 of 9 (77.78%) changed or added relevant lines in 1 file are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage decreased (-0.2%) to 70.659%

Changes Missing Coverage Covered Lines Changed/Added Lines %
src/strand.rs 7 9 77.78%
Totals Coverage Status
Change from base Build 509568354: -0.2%
Covered Lines: 761
Relevant Lines: 1077

💛 - Coveralls

@dcroote dcroote requested a review from tedil January 26, 2021 06:44
src/strand.rs Show resolved Hide resolved
The matches! macro that clippy suggested was only stabilized in 1.42
(2020-03-12). Allowing this clippy lint prevents projects using older
versions of rust from breaking going forward.

See also: GH-27
Copy link
Member

@tedil tedil left a comment

Choose a reason for hiding this comment

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

Thanks yet again!

@tedil tedil merged commit 7ade008 into master Jan 27, 2021
@tedil tedil deleted the revert-matches branch January 27, 2021 08:10
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.

None yet

3 participants