Skip to content

Commit

Permalink
Remove crate:: prefix from visible intradoc link names
Browse files Browse the repository at this point in the history
  • Loading branch information
MarijnS95 committed May 16, 2024
1 parent 5d7ab51 commit 90fcc1f
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 5 deletions.
12 changes: 9 additions & 3 deletions wayland-client/src/event_queue.rs
Original file line number Diff line number Diff line change
Expand Up @@ -30,14 +30,18 @@ use crate::{conn::SyncData, Connection, DispatchError, Proxy};
///
/// In the rare case of an interface with *events* creating new objects (in the core protocol, the only
/// instance of this is the `wl_data_device.data_offer` event), you'll need to implement the
/// [`Dispatch::event_created_child()`] method. See the [`crate::event_created_child!()`] macro
/// [`Dispatch::event_created_child()`] method. See the [`event_created_child!()`] macro
/// for a simple way to do this.
///
/// [`event_created_child!()`]: crate::event_created_child!()
///
/// ## Modularity
///
/// To provide generic handlers for downstream usage, it is possible to make an implementation of the trait
/// that is generic over the last type argument, as illustrated below. Users will then be able to
/// automatically delegate their implementation to yours using the [`crate::delegate_dispatch!()`] macro.
/// automatically delegate their implementation to yours using the [`delegate_dispatch!()`] macro.
///
/// [`delegate_dispatch!()`]: crate::delegate_dispatch!()
///
/// As a result, when your implementation is instantiated, the last type parameter `State` will be the state
/// struct of the app using your generic implementation. You can put additional trait constraints on it to
Expand Down Expand Up @@ -117,7 +121,9 @@ where
/// Method used to initialize the user-data of objects created by events
///
/// If the interface does not have any such event, you can ignore it. If not, the
/// [`crate::event_created_child!()`] macro is provided for overriding it.
/// [`event_created_child!()`] macro is provided for overriding it.
///
/// [`event_created_child!()`]: crate::event_created_child!()
#[cfg_attr(coverage, coverage(off))]
fn event_created_child(opcode: u16, _qhandle: &QueueHandle<State>) -> Arc<dyn ObjectData> {
panic!(
Expand Down
4 changes: 3 additions & 1 deletion wayland-server/src/dispatch.rs
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,9 @@ use crate::{Client, DisplayHandle, Resource};
///
/// To provide generic handlers for downstream usage, it is possible to make an implementation of the trait
/// that is generic over the last type argument, as illustrated below. Users will then be able to
/// automatically delegate their implementation to yours using the [`crate::delegate_dispatch!()`] macro.
/// automatically delegate their implementation to yours using the [`delegate_dispatch!()`] macro.
///
/// [`delegate_dispatch!()`]: crate::delegate_dispatch!()
///
/// As a result, when your implementation is instanciated, the last type parameter `State` will be the state
/// struct of the app using your generic implementation. You can put additional trait constraints on it to
Expand Down
4 changes: 3 additions & 1 deletion wayland-server/src/global.rs
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,9 @@ pub trait GlobalDispatch<I: Resource, GlobalData, State = Self>: Sized {
/// A helper macro which delegates a set of [`GlobalDispatch`] implementations for a resource to some other type which
/// provdes a generic [`GlobalDispatch`] implementation.
///
/// Its usage is similar to the [`crate::delegate_dispatch!()`] macro.
/// Its usage is similar to the [`delegate_dispatch!()`] macro.
///
/// [`delegate_dispatch!()`]: crate::delegate_dispatch!()
#[macro_export]
macro_rules! delegate_global_dispatch {
($(@< $( $lt:tt $( : $clt:tt $(+ $dlt:tt )* )? ),+ >)? $dispatch_from:ty : [$interface: ty: $udata: ty] => $dispatch_to: ty) => {
Expand Down

0 comments on commit 90fcc1f

Please sign in to comment.