Skip to content

Commit

Permalink
Fix clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelsproul committed Jan 19, 2024
1 parent 10fb02a commit a4abd44
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/test-suite.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ jobs:
- uses: arduino/setup-protoc@e52d9eb8f7b63115df1ac544a1376fdbf5a39612
- name: Get latest version of stable Rust
run: rustup update stable
- name: Check formatting with cargo fmt
- name: Check style with clippy
run: cargo clippy --tests --all
test:
strategy:
Expand Down
2 changes: 1 addition & 1 deletion src/fcu.rs
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ impl<E: EthSpec> Multiplexer<E> {
let head_hash = fcu.head_block_hash;
tracing::info!(head_hash = ?head_hash, "processing fcU from controller");

let opt_payload_attributes = if &method_name == ENGINE_FORKCHOICE_UPDATED_V2 {
let opt_payload_attributes = if method_name == ENGINE_FORKCHOICE_UPDATED_V2 {
json_payload_attributes
.map(serde_json::from_value)
.transpose()
Expand Down
1 change: 1 addition & 0 deletions src/new_payload.rs
Original file line number Diff line number Diff line change
Expand Up @@ -152,6 +152,7 @@ impl<E: EthSpec> Multiplexer<E> {
Response::new(id, status)
}

#[allow(clippy::type_complexity)]
fn decode_new_payload(
&self,
request: Request,
Expand Down

0 comments on commit a4abd44

Please sign in to comment.