Skip to content

Commit

Permalink
Appease clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
AgeManning committed Mar 14, 2023
1 parent 1df3191 commit b3d0167
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
4 changes: 2 additions & 2 deletions beacon_node/http_api/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3605,9 +3605,9 @@ pub fn serve<T: BeaconChainTypes>(

Ok::<_, warp::Rejection>(warp::sse::reply(warp::sse::keep_alive().stream(s)))
} else {
return Err(warp_utils::reject::custom_server_error(
Err(warp_utils::reject::custom_server_error(
"SSE Logging is not enabled".to_string(),
));
))
}
})
});
Expand Down
4 changes: 2 additions & 2 deletions common/logging/src/async_record.rs
Original file line number Diff line number Diff line change
Expand Up @@ -162,15 +162,15 @@ impl Serialize for AsyncRecord {
let dt = chrono::Local::now().format("%b %e %T").to_string();

let rs = RecordStatic {
location: &*self.location,
location: &self.location,
level: self.level,
tag: &self.tag,
};
let mut map_serializer = SerdeSerializer::new(serializer)?;

// Serialize the time and log level first
map_serializer.serialize_entry("time", &dt)?;
map_serializer.serialize_entry("level", &self.level.as_short_str())?;
map_serializer.serialize_entry("level", self.level.as_short_str())?;

let kv = self.kv.lock();

Expand Down
2 changes: 1 addition & 1 deletion crypto/bls/src/generic_aggregate_signature.rs
Original file line number Diff line number Diff line change
Expand Up @@ -266,7 +266,7 @@ where
}

/// Hashes the `self.serialize()` bytes.
#[allow(clippy::derived_hash_with_manual_eq)]
#[allow(clippy::derive_hash_xor_eq)]
impl<Pub, AggPub, Sig, AggSig> Hash for GenericAggregateSignature<Pub, AggPub, Sig, AggSig>
where
Sig: TSignature<Pub>,
Expand Down
4 changes: 2 additions & 2 deletions validator_client/src/http_api/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1019,9 +1019,9 @@ pub fn serve<T: 'static + SlotClock + Clone, E: EthSpec>(

Ok::<_, warp::Rejection>(warp::sse::reply(warp::sse::keep_alive().stream(s)))
} else {
return Err(warp_utils::reject::custom_server_error(
Err(warp_utils::reject::custom_server_error(
"SSE Logging is not enabled".to_string(),
));
))
}
})
});
Expand Down

0 comments on commit b3d0167

Please sign in to comment.