From 0ffcbeee5feb85f14f550ef646215a547fdab030 Mon Sep 17 00:00:00 2001 From: G2-Games Date: Wed, 31 Jan 2024 13:22:04 -0600 Subject: [PATCH] Eliminated remaining warnings --- src/backend/wasm.rs | 4 ++-- src/usb.rs | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/backend/wasm.rs b/src/backend/wasm.rs index d984579..aeb940c 100644 --- a/src/backend/wasm.rs +++ b/src/backend/wasm.rs @@ -5,8 +5,8 @@ use wasm_bindgen::prelude::*; use js_sys::{Array, Object, Promise, Uint8Array}; use wasm_bindgen_futures::JsFuture; use web_sys::{ - console, Usb, UsbControlTransferParameters, UsbDevice as WasmUsbDevice, - UsbDeviceRequestOptions, UsbInTransferResult, UsbInterface as WasmUsbInterface, + console, UsbControlTransferParameters, UsbDevice as WasmUsbDevice, + UsbDeviceRequestOptions, UsbInTransferResult, UsbOutTransferResult, UsbRecipient, UsbRequestType, }; diff --git a/src/usb.rs b/src/usb.rs index 67707a4..2cee372 100644 --- a/src/usb.rs +++ b/src/usb.rs @@ -1,4 +1,4 @@ -#![cfg_attr(debug_assertions, allow(async_fn_in_trait))] +#![allow(async_fn_in_trait)] use crate::context::UsbInterface; use std::error::Error;