Skip to content

Commit

Permalink
moar lint
Browse files Browse the repository at this point in the history
  • Loading branch information
abey79 committed Oct 9, 2024
1 parent 353bde8 commit 4f786b0
Showing 1 changed file with 7 additions and 8 deletions.
15 changes: 7 additions & 8 deletions crates/viewer/re_viewer/src/ui/rerun_menu.rs
Original file line number Diff line number Diff line change
Expand Up @@ -379,14 +379,13 @@ fn options_menu_ui(
}
}

#[cfg_attr(target_arch = "wasm32", allow(clippy::needless_pass_by_ref_mut))]
fn experimental_feature_ui(_ui: &mut egui::Ui, _app_options: &mut re_viewer_context::AppOptions) {
// IMPORTANT: if/when adding wasm-compatible experimental features, remove the conditional
// compilation directive just above the call size of this function!!

#[cfg(not(target_arch = "wasm32"))]
_ui
.re_checkbox(&mut _app_options.experimental_space_view_screenshots, "Space view screenshots")
// IMPORTANT: if/when adding wasm-compatible experimental features, move this conditional
// compilation directive to `space_view_screenshot` and remove the one above the call size of this
// function!!
#[cfg(not(target_arch = "wasm32"))]
fn experimental_feature_ui(ui: &mut egui::Ui, app_options: &mut re_viewer_context::AppOptions) {
ui
.re_checkbox(&mut app_options.experimental_space_view_screenshots, "Space view screenshots")
.on_hover_text("Allow taking screenshots of 2D and 3D space views via their context menu. Does not contain labels.");
}

Expand Down

0 comments on commit 4f786b0

Please sign in to comment.