Skip to content

Commit fa3c7fc

Browse files
committed
Clippy
1 parent 25b929d commit fa3c7fc

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

edge-ws/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ where
9898
for payload in ["Hello world!", "How are you?", "I'm fine, thanks!"] {
9999
let header = FrameHeader {
100100
frame_type: FrameType::Text(false),
101-
payload_len: payload.as_bytes().len() as _,
101+
payload_len: payload.len() as _,
102102
mask_key: rng_source.next_u32().into(),
103103
};
104104

examples/ws_client.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ where
7474
for payload in ["Hello world!", "How are you?", "I'm fine, thanks!"] {
7575
let header = FrameHeader {
7676
frame_type: FrameType::Text(false),
77-
payload_len: payload.as_bytes().len() as _,
77+
payload_len: payload.len() as _,
7878
mask_key: rng_source.next_u32().into(),
7979
};
8080

0 commit comments

Comments
 (0)