Skip to content

style(proto): enforce clippy:let_unit_value - #4231

Open
cratelyn wants to merge 1 commit into
masterfrom
kate/let-unit-value
Open

cratelyn wants to merge 1 commit into
masterfrom
kate/let-unit-value

Conversation

@cratelyn

@cratelyn cratelyn commented Oct 10, 2026 •

Copy link
Copy Markdown
Member

see #4071.

see https://rust-lang.github.io/rust-clippy/master/index.html#let_unit_value.

this commit addresses the let_unit_value clippy lint. only two sites
are affected, relating to tracing spans.

see #4071.

this commit addresses the `let_unit_value` clippy lint. only two sites
are affected, relating to tracing spans.

Signed-off-by: katelyn martin <git@katelyn.world>
@cratelyn
cratelyn marked this pull request as ready for review October 10, 2026 04:22
Comment thread src/proto/h1/role.rs
}

let _entered = trace_span!("parse_headers");
trace_span!("parse_headers");

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

trace_span returns a guard when tracing features is enabled. So the binding here actually serves a purpose.

This branch has not been deployed

No deployments
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