mirror of
https://github.com/storytold/vectorcraft.git
synced 2026-11-13 16:39:55 +00:00
`cargo clippy --target wasm32-unknown-unknown -p vectorcraft-ui-egui -- -D warnings` stopped twice. In vectorcraft-text, MAX_FILE_SEARCHES is used only by the system font search, which is not compiled for wasm32, so it was dead code there. In vectorcraft-ui-egui, Runtime holds only manual_window_open and status_message on wasm32, and the hand-written Default set them to false and None, so clippy's derivable_impls stopped the run. - MAX_FILE_SEARCHES is compiled only for targets other than wasm32, like the SysFallback struct next to it. - Runtime derives Default on wasm32, and the hand-written Default, which creates the updater, is compiled only for other targets.