From 4175ea54180aa309c1c69426e291a25956d6a8d9 Mon Sep 17 00:00:00 2001 From: sarukiti Date: Thu, 26 Dec 2024 17:42:13 +0900 Subject: [PATCH] remove alert. --- .gitignore | 1 + src/md.rs | 4 ++-- src/sd.rs | 2 +- src/smd.rs | 2 +- src/sr.rs | 2 +- 5 files changed, 6 insertions(+), 5 deletions(-) diff --git a/.gitignore b/.gitignore index 869df07..6cce4d3 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,3 @@ +.DS_Store /target Cargo.lock \ No newline at end of file diff --git a/src/md.rs b/src/md.rs index 56e15fe..02ccb3b 100644 --- a/src/md.rs +++ b/src/md.rs @@ -157,8 +157,8 @@ mod tests { // エラーハンドリング for i in 0..500 { println!("{i}"); - let return_status = md::send_speed(&handle, 0x00, i).unwrap(); - let return_status = md::send_speed(&handle, 0x01, i).unwrap(); + let _ = md::send_speed(&handle, 0x00, i).unwrap(); + let _ = md::send_speed(&handle, 0x01, i).unwrap(); let return_status = md::send_speed(&handle, 0x02, i).unwrap(); println!("{:?}", return_status); thread::sleep(Duration::from_millis(100)); diff --git a/src/sd.rs b/src/sd.rs index 38ee48b..ccdc063 100644 --- a/src/sd.rs +++ b/src/sd.rs @@ -1,5 +1,5 @@ use std::time::Duration; -use rusb::{constants::{LIBUSB_ENDPOINT_IN, LIBUSB_ENDPOINT_OUT}, DeviceHandle, Error, GlobalContext}; +use rusb::{constants:: LIBUSB_ENDPOINT_OUT, DeviceHandle, Error, GlobalContext}; use crate::{IdType, EndPont}; diff --git a/src/smd.rs b/src/smd.rs index 9bdadb5..427db0e 100644 --- a/src/smd.rs +++ b/src/smd.rs @@ -1,5 +1,5 @@ use std::time::Duration; -use rusb::{constants::{LIBUSB_ENDPOINT_IN, LIBUSB_ENDPOINT_OUT}, DeviceHandle, Error, GlobalContext}; +use rusb::{constants::LIBUSB_ENDPOINT_OUT, DeviceHandle, Error, GlobalContext}; use crate::{IdType, EndPont}; diff --git a/src/sr.rs b/src/sr.rs index b0a73a7..6969b04 100644 --- a/src/sr.rs +++ b/src/sr.rs @@ -1,5 +1,5 @@ use std::time::Duration; -use rusb::{constants::{LIBUSB_ENDPOINT_IN, LIBUSB_ENDPOINT_OUT}, DeviceHandle, Error, GlobalContext}; +use rusb::{constants::LIBUSB_ENDPOINT_OUT, DeviceHandle, GlobalContext}; use crate::{IdType, EndPont};