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 FAILPOINTS variable name in docs, and lints #76

Merged
merged 4 commits into from
Feb 28, 2024

Conversation

sourcefrog
Copy link
Contributor

@sourcefrog sourcefrog commented Jan 2, 2024


name: Fix env var name in docs
about: A bug squashed.


Related bugs:
n/a

Description of problem:
When reading the docs I was briefly confused what the correct variable name was.1

Description of solution:
Fix the docs to match the code.

Also, since rustc warns that unit tests inside docests are not run, mark it as norun for clarity and to address a warning.

Checklist:
The CI will check all of these, but you'll need to have done them:

  • cargo fmt -- --check passes.
  • cargo +nightly clippy has no warnings.
  • cargo test passes.

@sourcefrog sourcefrog marked this pull request as ready for review January 2, 2024 14:04
@sourcefrog
Copy link
Contributor Author

I don't know if there is any way to satisfy both stable and nightly Clippy here without allowing unknown lints, which seems like it might allow the old name to hang around, and it seems tangential to the core typo fix. Anyhow, let me know what you want, or if you're open to merging this.

src/lib.rs Outdated Show resolved Hide resolved
@BusyJay
Copy link
Member

BusyJay commented Feb 26, 2024

Rest LGTM

@sourcefrog
Copy link
Contributor Author

Thanks, please take another look.

@BusyJay
Copy link
Member

BusyJay commented Feb 27, 2024

Please sign off your last commit.

Signed-off-by: Martin Pool <mbp@sourcefrog.net>
Signed-off-by: Martin Pool <mbp@sourcefrog.net>
cargo doesn't run #[test] inside doctests; see https://rust-lang.github.io/rust-clippy/master/index.html#/test_attr_in_doctest

Signed-off-by: Martin Pool <mbp@sourcefrog.net>
Signed-off-by: Martin Pool <mbp@sourcefrog.net>
@sourcefrog
Copy link
Contributor Author

Please sign off your last commit.

done

Copy link
Member

@BusyJay BusyJay left a comment

Choose a reason for hiding this comment

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

Thanks

@BusyJay BusyJay merged commit 00dd175 into tikv:master Feb 28, 2024
5 checks passed
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