Skip to content

Fix needless-borrow clippy lint in header_stream.rs - #516

Open
0w3n-d wants to merge 1 commit into
developfrom
od/fix-header-stream-needless-borrow
Open

Fix needless-borrow clippy lint in header_stream.rs#516
0w3n-d wants to merge 1 commit into
developfrom
od/fix-header-stream-needless-borrow

Conversation

@0w3n-d

@0w3n-d 0w3n-d commented Aug 25, 2026

Copy link
Copy Markdown
Collaborator

What this PR does

`cargo clippy --all-features --no-deps -- -D warnings` -- the exact command this repo's workflow requires before any step is declared done -- currently fails on a clean `develop` checkout:

```
error: this expression creates a reference which is immediately dereferenced by the compiler
--> crates/relay/src/api/proposer/header_stream.rs:67:67
| .admit_header_stream(&params, &headers, &preferences, &config)
| ^^^^^^^ help: change this to: config
```

`config` is already a reference (`let config = &proposer_api.relay_config.header_stream;`), so `&config` double-borrows. One-line fix.

What this PR deliberately does NOT do

Nothing else -- found while verifying an unrelated change, unblocking clean clippy runs for everyone.

Tests

No behavior change; existing `header_stream` tests still pass.

Reviewer checklist

  • CI (`lint`, `unit-test`) is green
  • Nothing surprising

cargo clippy --all-features --no-deps -- -D warnings currently fails
on a clean develop checkout because of this. config is already a
reference, so &config double-borrows.
@0w3n-d
0w3n-d requested a review from ninaiiad August 25, 2026 16:05
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