From a363b26673079c5157b150a4896059bdceb01fe9 Mon Sep 17 00:00:00 2001 From: Christien Rioux Date: Sat, 27 Jul 2024 17:25:15 -0400 Subject: [PATCH] clippy fixes for wasm for rust 1.80 --- Earthfile | 1 + veilid-core/src/network_manager/wasm/protocol/ws.rs | 1 - veilid-tools/src/wasm.rs | 2 -- 3 files changed, 1 insertion(+), 3 deletions(-) diff --git a/Earthfile b/Earthfile index 282d65c7..415b7cda 100644 --- a/Earthfile +++ b/Earthfile @@ -181,6 +181,7 @@ build-android: unit-tests-clippy-linux: FROM +code-linux RUN cargo clippy + RUN cargo clippy --target=wasm32-unknown-unknown unit-tests-docs-linux: FROM +code-linux diff --git a/veilid-core/src/network_manager/wasm/protocol/ws.rs b/veilid-core/src/network_manager/wasm/protocol/ws.rs index d5a9295a..fb68b548 100644 --- a/veilid-core/src/network_manager/wasm/protocol/ws.rs +++ b/veilid-core/src/network_manager/wasm/protocol/ws.rs @@ -116,7 +116,6 @@ impl WebsocketNetworkConnection { } /////////////////////////////////////////////////////////// -/// pub(in crate::network_manager) struct WebsocketProtocolHandler {} diff --git a/veilid-tools/src/wasm.rs b/veilid-tools/src/wasm.rs index 66c33f5a..d658a609 100644 --- a/veilid-tools/src/wasm.rs +++ b/veilid-tools/src/wasm.rs @@ -1,5 +1,3 @@ -#![cfg(target_arch = "wasm32")] - use super::*; use core::sync::atomic::{AtomicI8, AtomicU32, Ordering}; use js_sys::{global, Reflect};