From a092be84b06152065d6f8eaf8cd7f2a23ca6e8c2 Mon Sep 17 00:00:00 2001 From: supersurviveur Date: Fri, 25 Sep 2026 08:12:02 +0200 Subject: [PATCH] chore: remove warnings on web version --- src/app.rs | 2 ++ src/view.rs | 1 + 2 files changed, 3 insertions(+) diff --git a/src/app.rs b/src/app.rs index b35e5ca..49912d0 100644 --- a/src/app.rs +++ b/src/app.rs @@ -581,6 +581,7 @@ pub struct FractalApp { export: Option>>, /// Output path for `--export-path` (native CLI only); falls back to a /// timestamped name when unset. + #[cfg(not(target_arch = "wasm32"))] export_path: Option, /// Short status line (saved path, "link copied", errors). status: Option, @@ -719,6 +720,7 @@ impl FractalApp { last_interact_time: -1.0e9, export_requested: false, export: None, + #[cfg(not(target_arch = "wasm32"))] export_path: None, status: None, center_re_edit, diff --git a/src/view.rs b/src/view.rs index 810bd02..af1a399 100644 --- a/src/view.rs +++ b/src/view.rs @@ -201,6 +201,7 @@ pub fn interpolate_view(from: &ViewState, to: &ViewState, t: f64) -> ViewState { ViewState::with_center(center_re, center_im, half_height) } +#[cfg(not(target_arch = "wasm32"))] pub fn interpolate_f64(from: f64, to: f64, t: f64) -> f64 { from + (to - from) * t }