[egui] fix build without "with_serde" feature

This commit is contained in:
Emil Ernerfeldt 2020-07-30 12:40:05 +02:00
parent fae81ca386
commit 42c94f9db9

View file

@ -144,6 +144,7 @@ impl app::App for DemoApp {
self.ui(ui, web_location_hash); self.ui(ui, web_location_hash);
} }
#[cfg(feature = "with_serde")]
fn on_exit(&mut self, storage: &mut dyn app::Storage) { fn on_exit(&mut self, storage: &mut dyn app::Storage) {
app::set_value(storage, app::APP_KEY, self); app::set_value(storage, app::APP_KEY, self);
} }