From 325fc41018c5eb75fbd18d9c84e9648ab88e4d70 Mon Sep 17 00:00:00 2001 From: Emil Ernerfeldt Date: Sat, 2 Nov 2024 16:46:05 +0100 Subject: [PATCH] Fix some unrelated clippy warnings on CI --- crates/store/re_video/src/decode/mod.rs | 2 +- crates/store/re_video/src/decode/webcodecs.rs | 2 +- crates/viewer/re_viewer/src/web_tools.rs | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/crates/store/re_video/src/decode/mod.rs b/crates/store/re_video/src/decode/mod.rs index 19c0f7db90b82..2649095fe056b 100644 --- a/crates/store/re_video/src/decode/mod.rs +++ b/crates/store/re_video/src/decode/mod.rs @@ -110,7 +110,7 @@ pub enum Error { #[cfg(target_arch = "wasm32")] #[error(transparent)] - WebDecoderError(#[from] webcodecs::Error), + WebDecoder(#[from] webcodecs::Error), #[error("Unsupported bits per component: {0}")] BadBitsPerComponent(usize), diff --git a/crates/store/re_video/src/decode/webcodecs.rs b/crates/store/re_video/src/decode/webcodecs.rs index 243c0ebf39566..69afc338b98ad 100644 --- a/crates/store/re_video/src/decode/webcodecs.rs +++ b/crates/store/re_video/src/decode/webcodecs.rs @@ -190,7 +190,7 @@ fn init_video_decoder( }; let on_error = Closure::wrap(Box::new(move |err: js_sys::Error| { - on_output_callback(Err(super::Error::WebDecoderError(Error::Decoding( + on_output_callback(Err(super::Error::WebDecoder(Error::Decoding( js_error_to_string(&err), )))); }) as Box); diff --git a/crates/viewer/re_viewer/src/web_tools.rs b/crates/viewer/re_viewer/src/web_tools.rs index 236c708b7171a..e259d8a25ab19 100644 --- a/crates/viewer/re_viewer/src/web_tools.rs +++ b/crates/viewer/re_viewer/src/web_tools.rs @@ -143,7 +143,7 @@ pub fn url_to_receiver( re_rrdp_comms::stream_recording(url, Some(ui_waker)).map_err(|err| err.into()) } #[cfg(not(feature = "rrdp"))] - EndpointCategory::DataPlatform(url) => { + EndpointCategory::DataPlatform(_url) => { anyhow::bail!("Missing 'rrdp' feature flag"); } EndpointCategory::WebEventListener(url) => {