Skip to content

Commit

Permalink
fmt, changelog
Browse files Browse the repository at this point in the history
  • Loading branch information
jgraef committed Dec 3, 2024
1 parent a98f1c2 commit 315edeb
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 5 deletions.
2 changes: 2 additions & 0 deletions changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@

Document new features here. Document whether your changes are *breaking* semver-compatibility.

- Added `UpgradedRequestBuilder::web_socket_config`

The current changes need a *patch* version bump.

# 0.4.3
Expand Down
5 changes: 4 additions & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -222,7 +222,10 @@ impl UpgradeResponse {
/// This checks if the `WebSocket` handshake was successful.
pub async fn into_websocket(self) -> Result<WebSocket, Error> {
#[cfg(not(target_arch = "wasm32"))]
let (inner, protocol) = self.inner.into_stream_and_protocol(self.protocols, self.web_socket_config).await?;
let (inner, protocol) = self
.inner
.into_stream_and_protocol(self.protocols, self.web_socket_config)
.await?;

#[cfg(target_arch = "wasm32")]
let (inner, protocol) = {
Expand Down
8 changes: 4 additions & 4 deletions src/native.rs
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
use std::borrow::Cow;

use crate::{
protocol::{CloseCode, Message},
Error,
};
use reqwest::{
header::{HeaderName, HeaderValue},
RequestBuilder, Response, StatusCode, Version,
};
use tungstenite::protocol::WebSocketConfig;
use crate::{
protocol::{CloseCode, Message},
Error,
};

pub async fn send_request(
request_builder: RequestBuilder,
Expand Down

0 comments on commit 315edeb

Please sign in to comment.