Skip to content

Commit

Permalink
remove unused where keyword (#307)
Browse files Browse the repository at this point in the history
  • Loading branch information
danlaine authored Jan 3, 2025
1 parent a56935e commit 63131a1
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions p2p/src/authenticated/actors/peer/actor.rs
Original file line number Diff line number Diff line change
Expand Up @@ -67,8 +67,7 @@ impl<E: Spawner + Clock + ReasonablyRealtime + Rng + CryptoRng> Actor<E> {
fn validate_msg<V>(
msg: Option<wire::Data>,
rate_limits: &HashMap<u32, V>,
) -> Result<wire::Data, Error>
where {
) -> Result<wire::Data, Error> {
let data = match msg {
Some(data) => data,
None => return Err(Error::PeerDisconnected),
Expand Down

0 comments on commit 63131a1

Please sign in to comment.