-
Notifications
You must be signed in to change notification settings - Fork 96
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: bump MSRV to 1.71.1 #1119
fix: bump MSRV to 1.71.1 #1119
Conversation
max_clock_drift: Duration, | ||
#[builder(default = Duration::from_secs(128000))] | ||
#[builder(default = Duration::from_secs(128_000))] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I liked the tidy outcome from clippy
, however, couldn’t catch them on my machine. What version of clippy
do you use? Did the CI detect these cases?
As for the particular case of the 128_000
, it's strange that 64000
would be considered acceptable.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I cherry picked the lints after running all clippy lint groups. We shouldn't do this directly on CI (but probably locally for reviewing PRs is fine) - as most of them are very opinionated. But we can definitely add a bunch of them on CI.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
For the particular case, the lint case is called unreadable_literal
. Looks like they warn this only when the decimal has 6 digits i.e. million.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let's fix things when the linter catches them. That's alright.
.changelog/unreleased/improvements/1101-use-let-else-over-downcast.md
Outdated
Show resolved
Hide resolved
btw, I want to fix one more lint but the changes are too big. You can try it by running cargo clippy --fix -- -W clippy::use_self |
* bump msrv to 1.71.1 * add ci check * rm windows * refactor msrv check * use cargo-msrv * add names to steps * apply clippy suggestions * rm redundant import * clippy::use_self * clippy::cast_lossless * clippy::match_same_arms * apply clippy suggestions * reuse old var * refactor old code * badge for license, version, downloads * rm broken tokei loc badge * add changelog * clippy::derive_partial_eq_without_eq * clippy::string_lit_as_bytes * clippy::empty_line_after_doc_comments * clippy::cloned_instead_of_copied * clippy::unreadable_literal * clippy::single_match_else * expect over unwrap * use let-else * use ok_or_else * propagate None * clippy::match_same_arms * return precise error * rm downcast in favor of let-else * chore: add unclog for 1101 + move 1118 under breaking-changes * add msrv in clippy config * update changelog * use into over from * clippy::redundant_closure_for_method_calls --------- Co-authored-by: Farhad Shabani <farhad.shabani@gmail.com>
Closes: #1118
Closes: #1101
Closes: #1120
Description
PR author checklist:
unclog
.docs/
).Reviewer checklist:
Files changed
in the GitHub PR explorer.