Skip to content

Commit

Permalink
Fix clippy lint
Browse files Browse the repository at this point in the history
  • Loading branch information
robertwayne committed Jan 16, 2025
1 parent 0f86f7a commit eb7ab73
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/upgrade.rs
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ where
if parts
.extensions
.get::<hyper::ext::Protocol>()
.map_or(true, |p| p.as_str() != "websocket")
.is_none_or(|p| p.as_str() != "websocket")
{
return Err(WebSocketError::InvalidProtocolPseudoheader);
}
Expand Down

0 comments on commit eb7ab73

Please sign in to comment.