From c52d21983de7957e83c02c2f29c67e173f40e73e Mon Sep 17 00:00:00 2001 From: David Tolnay Date: Mon, 8 May 2023 08:17:23 -0700 Subject: [PATCH] Fix broken link to format_ident macro documentation warning: unresolved link to `format_ident` --> src/ident_fragment.rs:10:11 | 10 | /// See [`format_ident!`] for more information. | ^^^^^^^^^^^^^ no item named `format_ident` in scope | = note: `macro_rules` named `format_ident` exists in this crate, but it is not in scope at this link's location = note: `#[warn(rustdoc::broken_intra_doc_links)]` on by default --- src/ident_fragment.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/ident_fragment.rs b/src/ident_fragment.rs index cf74024..e7e8a3d 100644 --- a/src/ident_fragment.rs +++ b/src/ident_fragment.rs @@ -8,6 +8,8 @@ use std::borrow::Cow; /// stripped, if present. /// /// See [`format_ident!`] for more information. +/// +/// [`format_ident!`]: crate::format_ident pub trait IdentFragment { /// Format this value as an identifier fragment. fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result;