Skip to content

Commit 8f850f4

Browse files
MarijnS95ids1024
authored andcommitted
Remove crate:: prefix from visible intradoc link names
1 parent 4151000 commit 8f850f4

File tree

3 files changed

+15
-5
lines changed

3 files changed

+15
-5
lines changed

wayland-client/src/event_queue.rs

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,14 +30,18 @@ use crate::{conn::SyncData, Connection, DispatchError, Proxy};
3030
///
3131
/// In the rare case of an interface with *events* creating new objects (in the core protocol, the only
3232
/// instance of this is the `wl_data_device.data_offer` event), you'll need to implement the
33-
/// [`Dispatch::event_created_child()`] method. See the [`crate::event_created_child!()`] macro
33+
/// [`Dispatch::event_created_child()`] method. See the [`event_created_child!()`] macro
3434
/// for a simple way to do this.
3535
///
36+
/// [`event_created_child!()`]: crate::event_created_child!()
37+
///
3638
/// ## Modularity
3739
///
3840
/// To provide generic handlers for downstream usage, it is possible to make an implementation of the trait
3941
/// that is generic over the last type argument, as illustrated below. Users will then be able to
40-
/// automatically delegate their implementation to yours using the [`crate::delegate_dispatch!()`] macro.
42+
/// automatically delegate their implementation to yours using the [`delegate_dispatch!()`] macro.
43+
///
44+
/// [`delegate_dispatch!()`]: crate::delegate_dispatch!()
4145
///
4246
/// As a result, when your implementation is instantiated, the last type parameter `State` will be the state
4347
/// struct of the app using your generic implementation. You can put additional trait constraints on it to
@@ -117,7 +121,9 @@ where
117121
/// Method used to initialize the user-data of objects created by events
118122
///
119123
/// If the interface does not have any such event, you can ignore it. If not, the
120-
/// [`crate::event_created_child!()`] macro is provided for overriding it.
124+
/// [`event_created_child!()`] macro is provided for overriding it.
125+
///
126+
/// [`event_created_child!()`]: crate::event_created_child!()
121127
#[cfg_attr(coverage, coverage(off))]
122128
fn event_created_child(opcode: u16, _qhandle: &QueueHandle<State>) -> Arc<dyn ObjectData> {
123129
panic!(

wayland-server/src/dispatch.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,9 @@ use crate::{Client, DisplayHandle, Resource};
3131
///
3232
/// To provide generic handlers for downstream usage, it is possible to make an implementation of the trait
3333
/// that is generic over the last type argument, as illustrated below. Users will then be able to
34-
/// automatically delegate their implementation to yours using the [`crate::delegate_dispatch!()`] macro.
34+
/// automatically delegate their implementation to yours using the [`delegate_dispatch!()`] macro.
35+
///
36+
/// [`delegate_dispatch!()`]: crate::delegate_dispatch!()
3537
///
3638
/// As a result, when your implementation is instanciated, the last type parameter `State` will be the state
3739
/// struct of the app using your generic implementation. You can put additional trait constraints on it to

wayland-server/src/global.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,9 @@ pub trait GlobalDispatch<I: Resource, GlobalData, State = Self>: Sized {
128128
/// A helper macro which delegates a set of [`GlobalDispatch`] implementations for a resource to some other type which
129129
/// provdes a generic [`GlobalDispatch`] implementation.
130130
///
131-
/// Its usage is similar to the [`crate::delegate_dispatch!()`] macro.
131+
/// Its usage is similar to the [`delegate_dispatch!()`] macro.
132+
///
133+
/// [`delegate_dispatch!()`]: crate::delegate_dispatch!()
132134
#[macro_export]
133135
macro_rules! delegate_global_dispatch {
134136
($(@< $( $lt:tt $( : $clt:tt $(+ $dlt:tt )* )? ),+ >)? $dispatch_from:ty : [$interface: ty: $udata: ty] => $dispatch_to: ty) => {

0 commit comments

Comments
 (0)