From 01322f69a406eee76014f5e2834336e2295ad80e Mon Sep 17 00:00:00 2001 From: Héctor Ramón Jiménez Date: Wed, 25 Nov 2020 07:11:27 +0100 Subject: Use recently stabilized intra-doc links See RFC: https://github.com/rust-lang/rfcs/blob/master/text/1946-intra-rustdoc-links.md --- native/src/subscription.rs | 13 +------------ 1 file changed, 1 insertion(+), 12 deletions(-) (limited to 'native/src/subscription.rs') diff --git a/native/src/subscription.rs b/native/src/subscription.rs index 3cc04188..ff954382 100644 --- a/native/src/subscription.rs +++ b/native/src/subscription.rs @@ -14,21 +14,16 @@ use iced_futures::futures::stream::BoxStream; /// For instance, you can use a [`Subscription`] to listen to a WebSocket /// connection, keyboard presses, mouse events, time ticks, etc. /// -/// [`Command`]: ../struct.Command.html -/// [`Subscription`]: struct.Subscription.html +/// [`Command`]: crate::Command pub type Subscription = iced_futures::Subscription; /// A stream of runtime events. /// /// It is the input of a [`Subscription`] in the native runtime. -/// -/// [`Subscription`]: type.Subscription.html pub type EventStream = BoxStream<'static, (Event, event::Status)>; /// A native [`Subscription`] tracker. -/// -/// [`Subscription`]: type.Subscription.html pub type Tracker = iced_futures::subscription::Tracker; @@ -42,9 +37,6 @@ use events::Events; /// /// This subscription will notify your application of any [`Event`] that was /// not captured by any widget. -/// -/// [`Subscription`]: type.Subscription.html -/// [`Event`]: ../enum.Event.html pub fn events() -> Subscription { Subscription::from_recipe(Events { f: |event, status| match status { @@ -62,9 +54,6 @@ pub fn events() -> Subscription { /// /// - Returns `None`, the [`Event`] will be discarded. /// - Returns `Some` message, the `Message` will be produced. -/// -/// [`Subscription`]: type.Subscription.html -/// [`Event`]: ../enum.Event.html pub fn events_with( f: fn(Event, event::Status) -> Option, ) -> Subscription -- cgit