From d6c3da21f7fe7a79bcfbc2a180dc111e42300a04 Mon Sep 17 00:00:00 2001 From: Héctor Ramón Jiménez Date: Sat, 14 Dec 2019 05:56:46 +0100 Subject: Write docs for subscriptions and reorganize a bit --- examples/events.rs | 2 +- examples/stopwatch.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'examples') diff --git a/examples/events.rs b/examples/events.rs index 0b944495..7d83fbd8 100644 --- a/examples/events.rs +++ b/examples/events.rs @@ -47,7 +47,7 @@ impl Application for Events { Command::none() } - fn subscriptions(&self) -> Subscription { + fn subscription(&self) -> Subscription { if self.enabled { iced_native::subscription::events().map(Message::EventOccurred) } else { diff --git a/examples/stopwatch.rs b/examples/stopwatch.rs index 0d52a091..7a7f0793 100644 --- a/examples/stopwatch.rs +++ b/examples/stopwatch.rs @@ -74,7 +74,7 @@ impl Application for Stopwatch { Command::none() } - fn subscriptions(&self) -> Subscription { + fn subscription(&self) -> Subscription { match self.state { State::Idle => Subscription::none(), State::Ticking { .. } => { -- cgit