Skip to content

grpc: resolve simple clippy warnings - #2848

Draft
nathanielford wants to merge 1 commit into
grpc:masterfrom
nathanielford:refactor/clippy-warnings
Draft

grpc: resolve simple clippy warnings#2848
nathanielford wants to merge 1 commit into
grpc:masterfrom
nathanielford:refactor/clippy-warnings

Conversation

@nathanielford

Copy link
Copy Markdown
Contributor

Motivation

Clean up simple, non-invasive clippy warnings in the grpc crate so development and pre-commit checks don't trip on unrelated warnings.

Solution

Resolve simple warnings across 4 categories in grpc/src:

  • clippy::doc_markdown: Add missing backticks and angle brackets for URLs/identifiers in doc comments.
  • clippy::semicolon_if_nothing_returned: Add trailing semicolons on statements returning unit (()).
  • clippy::unnecessary_semicolon: Remove redundant semicolons.
  • clippy::elidable_lifetime_names: Elide redundant lifetime annotations on method implementations.

More complex lints (e.g. clippy::large_enum_variant) are deferred.

Resolve simple warnings in the `grpc` crate across the following categories:
- clippy::doc_markdown: add missing backticks and URL formatting in doc comments
- clippy::semicolon_if_nothing_returned: add trailing semicolons to unit-returning expressions
- clippy::unnecessary_semicolon: remove redundant trailing semicolons
- clippy::elidable_lifetime_names: elide redundant lifetime annotations
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