Skip to content

Commit

Permalink
Fix a bunch of broken feature flags (#8021)
Browse files Browse the repository at this point in the history
Discovered them by temporarily upgrading to Rust 1.80, which landed the
feature flag checker.
  • Loading branch information
teh-cmc authored Nov 7, 2024
1 parent 3a32772 commit ddc2847
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 5 deletions.
3 changes: 0 additions & 3 deletions crates/viewer/re_ui/src/command.rs
Original file line number Diff line number Diff line change
Expand Up @@ -359,9 +359,6 @@ impl UICommand {
Self::RestartWithWebGl => None,
#[cfg(target_arch = "wasm32")]
Self::RestartWithWebGpu => None,

#[cfg(target_arch = "wasm32 ")]
Self::ViewportMode(_) => None,
}
}

Expand Down
1 change: 0 additions & 1 deletion crates/viewer/re_viewer/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -230,7 +230,6 @@ pub fn customize_eframe_and_setup_renderer(
// ---------------------------------------------------------------------------

/// This wakes up the ui thread each time we receive a new message.
#[cfg(not(feature = "web_viewer"))]
#[cfg(not(target_arch = "wasm32"))]
pub fn wake_up_ui_thread_on_each_msg<T: Send + 'static>(
rx: re_smart_channel::Receiver<T>,
Expand Down
2 changes: 1 addition & 1 deletion crates/viewer/re_viewer_context/src/image_info.rs
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ impl ImageInfo {
// But it can happen, e.g. when logging a `1x1xu8` image followed by a `1x1xf32` image
// to the same entity path, and they are put in the same chunk.

if cfg!(debug_asserttions) {
if cfg!(debug_assertions) {
re_log::warn_once!(
"The image buffer was not aligned to the element type {}",
std::any::type_name::<T>()
Expand Down
3 changes: 3 additions & 0 deletions crates/viewer/re_web_viewer_server/build.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
fn main() {
println!("cargo::rustc-check-cfg=cfg(disable_web_viewer_server)");
}

0 comments on commit ddc2847

Please sign in to comment.