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