mirror of
https://github.com/storytold/deckcraft.git
synced 2026-12-02 02:36:14 -06:00
Merge pull request #1961 from Naseq/fix-1954-wasm-dead-code
ui-egui: cfg `opening_generation` off wasm32 and lint the wasm set with -D warnings (#1954)
This commit is contained in:
@@ -72,6 +72,7 @@ impl SlideApp {
|
|||||||
synthetic_injected_time: None,
|
synthetic_injected_time: None,
|
||||||
ribbon_scroll: HashMap::new(),
|
ribbon_scroll: HashMap::new(),
|
||||||
show_instance: 0,
|
show_instance: 0,
|
||||||
|
#[cfg(not(target_arch = "wasm32"))]
|
||||||
opening_generation: 0,
|
opening_generation: 0,
|
||||||
canvas_rect: None,
|
canvas_rect: None,
|
||||||
eyedropper: None,
|
eyedropper: None,
|
||||||
|
|||||||
@@ -276,7 +276,8 @@ pub struct SlideApp {
|
|||||||
ribbon_scroll: HashMap<String, u32>,
|
ribbon_scroll: HashMap<String, u32>,
|
||||||
/// Monotonic identity for a new slide show instance (`start_show`).
|
/// Monotonic identity for a new slide show instance (`start_show`).
|
||||||
show_instance: u64,
|
show_instance: u64,
|
||||||
/// Monotonic identity for a new background-open attempt.
|
/// Monotonic identity for a new background-open attempt (the web build has no threads).
|
||||||
|
#[cfg(not(target_arch = "wasm32"))]
|
||||||
opening_generation: u64,
|
opening_generation: u64,
|
||||||
/// Canvas screen rect and points-per-slide-point scale (for control & tests).
|
/// Canvas screen rect and points-per-slide-point scale (for control & tests).
|
||||||
pub canvas_rect: Option<egui::Rect>,
|
pub canvas_rect: Option<egui::Rect>,
|
||||||
|
|||||||
Reference in New Issue
Block a user