Fix missing Subscription type in iced_web

This commit is contained in:
Héctor Ramón Jiménez 2019-12-18 23:57:02 +01:00
parent 0f2e20f5e5
commit 9ca65c9f18
5 changed files with 47 additions and 3 deletions

View file

@ -146,12 +146,12 @@ pub trait Application: Sized {
/// It should probably be that last thing you call in your `main` function.
///
/// [`Application`]: trait.Application.html
fn run(settings: Settings)
fn run(_settings: Settings)
where
Self: 'static,
{
#[cfg(not(target_arch = "wasm32"))]
<Instance<Self> as iced_winit::Application>::run(settings.into());
<Instance<Self> as iced_winit::Application>::run(_settings.into());
#[cfg(target_arch = "wasm32")]
<Instance<Self> as iced_web::Application>::run();