1
0
mirror of https://github.com/emilk/egui.git synced 2026-09-02 14:50:03 -04:00

CI: Run cargo clippy for wasm32-unknown-unknown (#2200)

* CI: Run cargo clippy for wasm32-unknown-unknown

* wasm32 clippy fixes

* Document when AppRunner::new can fail
This commit is contained in:
Emil Ernerfeldt
2022-10-30 20:55:07 +01:00
committed by GitHub
parent 53b800502a
commit 2b1341095d
10 changed files with 39 additions and 24 deletions

View File

@@ -1,4 +1,5 @@
//! Demo app for egui
#![allow(clippy::missing_errors_doc)]
mod apps;
mod backend_panel;
@@ -34,13 +35,7 @@ impl WebHandle {
#[wasm_bindgen]
pub fn stop_web(&self) -> Result<(), wasm_bindgen::JsValue> {
let mut app = self.handle.lock();
let res = app.destroy();
// let numw = Arc::weak_count(&app);
// let nums = Arc::strong_count(&app);
// tracing::debug!("runner ref {:?}, {:?}", numw, nums);
res
app.destroy()
}
#[wasm_bindgen]