From 90cf9a3398b4b4f6edb33c50aac94801d9bd0305 Mon Sep 17 00:00:00 2001 From: Kirill Chibisov Date: Tue, 18 Feb 2025 14:58:36 +0300 Subject: [PATCH] docs: remove dead doc link --- src/lib.rs | 2 -- src/window.rs | 8 ++++---- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/lib.rs b/src/lib.rs index 3dadb80d..68ce042e 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -257,12 +257,10 @@ //! [`Window`]: window::Window //! [`WindowId`]: window::WindowId //! [`WindowAttributes`]: window::WindowAttributes -//! [window_new]: window::Window::new //! [`create_window`]: event_loop::ActiveEventLoop::create_window //! [`Window::id()`]: window::Window::id //! [`WindowEvent`]: event::WindowEvent //! [`DeviceEvent`]: event::DeviceEvent -//! [`Event::UserEvent`]: event::Event::UserEvent //! [`exiting()`]: crate::application::ApplicationHandler::exiting //! [`raw_window_handle`]: ./window/struct.Window.html#method.raw_window_handle //! [`raw_display_handle`]: ./window/struct.Window.html#method.raw_display_handle diff --git a/src/window.rs b/src/window.rs index 574e8a46..0a0504ba 100644 --- a/src/window.rs +++ b/src/window.rs @@ -1558,14 +1558,14 @@ impl ActivationToken { /// won't get focused automatically), but won't yield any errors. /// /// To obtain a valid token, use - #[cfg_attr(any(x11_platform, wayland_platform, docsrs), doc = " [`request_activation_token`].")] + #[cfg_attr( + any(x11_platform, wayland_platform, docsrs), + doc = " [`request_activation_token`](crate::platform::startup_notify::WindowExtStartupNotify::request_activation_token)." + )] #[cfg_attr( not(any(x11_platform, wayland_platform, docsrs)), doc = " `request_activation_token`." )] - /// - #[rustfmt::skip] - /// [`request_activation_token`]: crate::platform::startup_notify::WindowExtStartupNotify::request_activation_token pub fn from_raw(token: String) -> Self { Self { token } }