chore: remove warnings on web version
This commit is contained in:
@@ -581,6 +581,7 @@ pub struct FractalApp {
|
||||
export: Option<Arc<Mutex<ExportShared>>>,
|
||||
/// Output path for `--export-path` (native CLI only); falls back to a
|
||||
/// timestamped name when unset.
|
||||
#[cfg(not(target_arch = "wasm32"))]
|
||||
export_path: Option<String>,
|
||||
/// Short status line (saved path, "link copied", errors).
|
||||
status: Option<String>,
|
||||
@@ -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,
|
||||
|
||||
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user