Skip to content

Commit

Permalink
doc fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
Wumpf committed Sep 19, 2024
1 parent db6522e commit 600919a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ use crate::{view_kind::SpatialSpaceViewKind, PickableTexturedRect};
///
/// Each spatial scene element is expected to fill an instance of this struct with its data.
pub struct SpatialViewVisualizerData {
/// Labels that should be shown rendering egui.
/// Labels that should be shown using egui.
pub ui_labels: Vec<UiLabel>,

/// Bounding boxes of all visualizations that the visualizer showed.
Expand Down
10 changes: 4 additions & 6 deletions crates/viewer/re_space_view_spatial/src/visualizers/videos.rs
Original file line number Diff line number Diff line change
Expand Up @@ -281,12 +281,10 @@ impl VideoFrameReferenceVisualizer {
},
);

let video_error_texture = match video_error_texture_result {
Ok(video_error_texture) => video_error_texture,
Err(err) => {
re_log::error_once!("Failed to show video error icon: {err}");
return;
}
let Ok(video_error_texture) = video_error_texture_result.inspect_err(|err| {
re_log::error_once!("Failed to show video error icon: {err}");
}) else {
return; // We failed at failing...
};

// Center the icon in the middle of the video rectangle.
Expand Down

0 comments on commit 600919a

Please sign in to comment.