Skip to content

Commit 4f786b0

Browse files
committed
moar lint
1 parent 353bde8 commit 4f786b0

File tree

1 file changed

+7
-8
lines changed

1 file changed

+7
-8
lines changed

crates/viewer/re_viewer/src/ui/rerun_menu.rs

+7-8
Original file line numberDiff line numberDiff line change
@@ -379,14 +379,13 @@ fn options_menu_ui(
379379
}
380380
}
381381

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

0 commit comments

Comments
 (0)