Skip to content

Conversation

wprzytula
Copy link
Contributor

This is fully analogous to scylladb/scylla-rust-driver@15448c4. Pasting the commit message:

Turns out clippy has a terrible and shocking default: it won't make
suggestions that require introducing breaking changes.
This means that e.g. if we introduce a type which has a naming that
clippy would normally complain about, it won't if the type is pub!

  1. Clippy is made check public API, too.
  2. The affected names are fixed.

Pre-review checklist

  • I have split my patch into logically separate commits.
  • All commit messages clearly explain what they change and why.
  • PR description sums up the changes and reasons why they should be introduced.
  • [ ] I have implemented Rust unit tests for the features/changes introduced.
  • [ ] I have enabled appropriate tests in .github/workflows/build.yml in gtest_filter.
  • [ ] I have enabled appropriate tests in .github/workflows/cassandra.yml in gtest_filter.

@wprzytula wprzytula mentioned this pull request Jun 6, 2025
4 tasks
@wprzytula wprzytula force-pushed the allow-clippy-public-api-complaints branch from 79eac67 to c874bb2 Compare June 11, 2025 11:17
@wprzytula wprzytula requested a review from Lorak-mmk June 11, 2025 11:17
@wprzytula wprzytula self-assigned this Jun 11, 2025
@wprzytula wprzytula added this to the 0.5 milestone Jun 11, 2025
The following name changes were introduced:
1. CassDataTypeInner::UDT -> CassDataTypeInner::Udt
  - rationale: "UDT" is an acronym, and Rust style guide suggests using
    CapitalizedCamelCase for acronyms.
2. UDTDataType -> UdtDataType
  - rationale: ditto about the prefix.

Clippy didn't complain about previous naming, because the lint
`avoid-breaking-exported-api` was implicitly enabled. The next commit
explicitly disables it, so that Clippy will warn about such naming
issues.
The lint `avoid-breaking-exported-api` was implicitly enabled. Therefore,
Clippy didn't complain about bad naming in public API.
As the crate is not exposed to the public, we can disable this lint
without any loss.
The tests are no longer configured in the GitHub workflows, but in
the Makefile. This change updates the PR template to reflect that.
@wprzytula wprzytula force-pushed the allow-clippy-public-api-complaints branch from c874bb2 to ae748ea Compare June 11, 2025 12:34
@wprzytula wprzytula merged commit d1a771c into scylladb:master Jun 11, 2025
12 checks passed
@wprzytula wprzytula deleted the allow-clippy-public-api-complaints branch June 11, 2025 15:10
@wprzytula wprzytula mentioned this pull request Jun 17, 2025
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