Fix warnings

This commit is contained in:
Kevin Mehall 2025-06-15 13:34:37 -06:00
parent a693c9211c
commit 8d55c38aa4
2 changed files with 2 additions and 2 deletions

View file

@ -106,7 +106,7 @@ pub mod blocking {
}
#[cfg(not(any(feature = "smol", feature = "tokio")))]
fn spawn(f: impl FnOnce() -> R + Send + 'static) -> Self {
fn spawn(_f: impl FnOnce() -> R + Send + 'static) -> Self {
panic!("Awaiting blocking syscall without an async runtime: enable the `smol` or `tokio` feature of nusb.");
}
}

View file

@ -551,7 +551,7 @@ fn request_configuration(fd: &OwnedFd) -> Result<u8, ()> {
Ok(1) => {
let active_config = dst[0];
debug!("Obtained active configuration for fd {} from GET_CONFIGURATION request: {active_config}", fd.as_raw_fd());
return Ok(active_config);
Ok(active_config)
}
Ok(n) => {
warn!("GET_CONFIGURATION request returned unexpected length: {n}, expected 1");