Skip to content

Commit

Permalink
Clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
bugadani committed Jan 6, 2025
1 parent c70bcb4 commit fd7bb49
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion edge-ws/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ where
for payload in ["Hello world!", "How are you?", "I'm fine, thanks!"] {
let header = FrameHeader {
frame_type: FrameType::Text(false),
payload_len: payload.as_bytes().len() as _,
payload_len: payload.len(),
mask_key: rng_source.next_u32().into(),
};

Expand Down
2 changes: 1 addition & 1 deletion examples/ws_client.rs
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ where
for payload in ["Hello world!", "How are you?", "I'm fine, thanks!"] {
let header = FrameHeader {
frame_type: FrameType::Text(false),
payload_len: payload.as_bytes().len() as _,
payload_len: payload.len(),
mask_key: rng_source.next_u32().into(),
};

Expand Down

0 comments on commit fd7bb49

Please sign in to comment.