Skip to content

Commit

Permalink
Fix some unrelated clippy warnings on CI
Browse files Browse the repository at this point in the history
  • Loading branch information
emilk committed Nov 2, 2024
1 parent 5457ec1 commit 325fc41
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion crates/store/re_video/src/decode/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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),
Expand Down
2 changes: 1 addition & 1 deletion crates/store/re_video/src/decode/webcodecs.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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<dyn Fn(js_sys::Error)>);
Expand Down
2 changes: 1 addition & 1 deletion crates/viewer/re_viewer/src/web_tools.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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) => {
Expand Down

0 comments on commit 325fc41

Please sign in to comment.