mirror of
https://github.com/yewstack/yew.git
synced 2025-12-08 21:26:25 +00:00
Fix web-sys clippy warning (#1001)
This commit is contained in:
parent
96b224ee9b
commit
a4670fa80d
@ -311,10 +311,7 @@ impl WebSocketTask {
|
||||
if let Ok(body) = data.into() {
|
||||
let result = cfg_match! {
|
||||
feature = "std_web" => self.ws.send_bytes(&body),
|
||||
feature = "web_sys" => ({
|
||||
let mut body = body;
|
||||
self.ws.send_with_u8_array(&mut body)
|
||||
}),
|
||||
feature = "web_sys" => self.ws.send_with_u8_array(&body),
|
||||
};
|
||||
|
||||
if result.is_err() {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user