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

Fix clippy::if_same_then_else warning in --paging=auto logic #1449

Merged

Conversation

Enselic
Copy link
Collaborator

@Enselic Enselic commented Dec 25, 2020

This PR fixes the last correctness category of clippy lints, to make the discussions in #1410 simpler to have.

I manually verified that the -pp and -P flags still work.

(It is worth noting that we have no automated tests that cover the changed code. Probably because it is a bit tricky to test e.g. PagingMode::QuitIfOneScreen with assert_cmd.)

@sharkdp
Copy link
Owner

sharkdp commented Dec 28, 2020

Thank you for your contribution!

(It is worth noting that we have no automated tests that cover the changed code. Probably because it is a bit tricky to test e.g. PagingMode::QuitIfOneScreen with assert_cmd.)

Yes :-/

@sharkdp sharkdp merged commit 6d1c7d5 into sharkdp:master Dec 28, 2020
@Enselic Enselic deleted the fix-last-clippy-warning-that-defaults-to-deny branch January 6, 2021 21:41
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