Skip to content

fix: Tighten lint expectations and example helpers#345

Merged
tlepoint merged 1 commit into
mainfrom
fix/lint
Jan 12, 2026
Merged

fix: Tighten lint expectations and example helpers#345
tlepoint merged 1 commit into
mainfrom
fix/lint

Conversation

@tlepoint

Copy link
Copy Markdown
Owner

No description provided.

@tlepoint
tlepoint merged commit ad500a0 into main Jan 12, 2026
6 checks passed
@tlepoint
tlepoint deleted the fix/lint branch January 12, 2026 00:42

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: b9aa6e5f50

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

#![allow(clippy::indexing_slicing)]
#![allow(missing_docs)]
// Expect indexing in examples for simplicity
#![expect(missing_docs, reason = "examples/benches/tests omit docs by design")]

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P1 Badge Drop missing_docs expect for non-public example

This example crate has no public items, so missing_docs never fires. With #![expect(missing_docs)] the compiler emits an unfulfilled-lint-expectations warning, and the required cargo clippy --all-targets -- -D warnings will fail for this target. Consider removing the expect here or adding a documented public item if you really want a missing_docs expectation.

Useful? React with 👍 / 👎.

Comment on lines 3 to 4
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct Ciphertext {

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P1 Badge Restore suppression for prost PartialEq lint

These prost-generated structs derive PartialEq but not Eq, which triggers Clippy’s derive_partial_eq_without_eq lint. The removed #[allow(clippy::derive_partial_eq_without_eq)] means cargo clippy --all-targets -- -D warnings now fails on this module unless Eq is derived or the lint is re-suppressed.

Useful? React with 👍 / 👎.

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.

1 participant