mirror of
https://github.com/storytold/deckcraft.git
synced 2026-11-14 22:25:44 +00: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:
2 files changed
+3
-1
No files matched your search
@@ -72,6 +72,7 @@ impl SlideApp {
|
||||
synthetic_injected_time: None,
|
||||
ribbon_scroll: HashMap::new(),
|
||||
show_instance: 0,
|
||||
#[cfg(not(target_arch = "wasm32"))]
|
||||
opening_generation: 0,
|
||||
canvas_rect: None,
|
||||
eyedropper: None,
|
||||
|
||||
@@ -276,7 +276,8 @@ pub struct SlideApp {
|
||||
ribbon_scroll: HashMap<String, u32>,
|
||||
/// Monotonic identity for a new slide show instance (`start_show`).
|
||||
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,
|
||||
/// Canvas screen rect and points-per-slide-point scale (for control & tests).
|
||||
pub canvas_rect: Option<egui::Rect>,
|
||||
|
||||
Reference in new issue
Block a user