fix a warning with base64 (#300)
This commit is contained in:
parent
634bf98b05
commit
a5fea0b061
|
@ -57,6 +57,6 @@ jobs:
|
||||||
components: rustfmt
|
components: rustfmt
|
||||||
default: true
|
default: true
|
||||||
- name: Build
|
- name: Build
|
||||||
run: cargo build --tests --verbose
|
run: cargo build --locked --tests --verbose
|
||||||
- name: Run tests
|
- name: Run tests
|
||||||
run: cargo test --verbose
|
run: cargo test --locked --verbose
|
||||||
|
|
|
@ -822,7 +822,10 @@ impl Generator {
|
||||||
.header(reqwest::header::SEC_WEBSOCKET_VERSION, "13")
|
.header(reqwest::header::SEC_WEBSOCKET_VERSION, "13")
|
||||||
.header(
|
.header(
|
||||||
reqwest::header::SEC_WEBSOCKET_KEY,
|
reqwest::header::SEC_WEBSOCKET_KEY,
|
||||||
base64::encode(rand::random::<[u8; 16]>()),
|
base64::Engine::encode(
|
||||||
|
&base64::engine::general_purpose::STANDARD,
|
||||||
|
rand::random::<[u8; 16]>(),
|
||||||
|
)
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
|
|
|
@ -1870,7 +1870,10 @@ pub mod builder {
|
||||||
.header(reqwest::header::SEC_WEBSOCKET_VERSION, "13")
|
.header(reqwest::header::SEC_WEBSOCKET_VERSION, "13")
|
||||||
.header(
|
.header(
|
||||||
reqwest::header::SEC_WEBSOCKET_KEY,
|
reqwest::header::SEC_WEBSOCKET_KEY,
|
||||||
base64::encode(rand::random::<[u8; 16]>()),
|
base64::Engine::encode(
|
||||||
|
&base64::engine::general_purpose::STANDARD,
|
||||||
|
rand::random::<[u8; 16]>(),
|
||||||
|
),
|
||||||
)
|
)
|
||||||
.build()?;
|
.build()?;
|
||||||
let result = client.client.execute(request).await;
|
let result = client.client.execute(request).await;
|
||||||
|
|
|
@ -1876,7 +1876,10 @@ pub mod builder {
|
||||||
.header(reqwest::header::SEC_WEBSOCKET_VERSION, "13")
|
.header(reqwest::header::SEC_WEBSOCKET_VERSION, "13")
|
||||||
.header(
|
.header(
|
||||||
reqwest::header::SEC_WEBSOCKET_KEY,
|
reqwest::header::SEC_WEBSOCKET_KEY,
|
||||||
base64::encode(rand::random::<[u8; 16]>()),
|
base64::Engine::encode(
|
||||||
|
&base64::engine::general_purpose::STANDARD,
|
||||||
|
rand::random::<[u8; 16]>(),
|
||||||
|
),
|
||||||
)
|
)
|
||||||
.build()?;
|
.build()?;
|
||||||
let result = client.client.execute(request).await;
|
let result = client.client.execute(request).await;
|
||||||
|
|
|
@ -493,7 +493,10 @@ impl Client {
|
||||||
.header(reqwest::header::SEC_WEBSOCKET_VERSION, "13")
|
.header(reqwest::header::SEC_WEBSOCKET_VERSION, "13")
|
||||||
.header(
|
.header(
|
||||||
reqwest::header::SEC_WEBSOCKET_KEY,
|
reqwest::header::SEC_WEBSOCKET_KEY,
|
||||||
base64::encode(rand::random::<[u8; 16]>()),
|
base64::Engine::encode(
|
||||||
|
&base64::engine::general_purpose::STANDARD,
|
||||||
|
rand::random::<[u8; 16]>(),
|
||||||
|
),
|
||||||
)
|
)
|
||||||
.build()?;
|
.build()?;
|
||||||
let result = self.client.execute(request).await;
|
let result = self.client.execute(request).await;
|
||||||
|
|
Loading…
Reference in New Issue