# HG changeset patch # User Georges Racinet # Date 2023-04-03 13:32:39 # Node ID 331a3cbe1c9ee186137525204ed9fbd6e22b4137 # Parent 071a6c1d291e59f4830564ab53258e94944c2638 rustdoc: fixed warnings about links This is the minimal fix making those that actually were supposed to be links to work (including in private items). diff --git a/rust/hg-core/src/checkexec.rs b/rust/hg-core/src/checkexec.rs --- a/rust/hg-core/src/checkexec.rs +++ b/rust/hg-core/src/checkexec.rs @@ -112,7 +112,7 @@ fn check_exec_impl(path: impl AsRef) -> bool { check_exec_impl(path).unwrap_or(false) diff --git a/rust/hg-core/src/revlog/nodemap.rs b/rust/hg-core/src/revlog/nodemap.rs --- a/rust/hg-core/src/revlog/nodemap.rs +++ b/rust/hg-core/src/revlog/nodemap.rs @@ -69,8 +69,8 @@ pub trait NodeMap { /// /// If no Revision matches the given prefix, `Ok(None)` is returned. /// - /// If several Revisions match the given prefix, a [`MultipleResults`] - /// error is returned. + /// If several Revisions match the given prefix, a + /// [MultipleResults](NodeMapError) error is returned. fn find_bin( &self, idx: &impl RevlogIndex, @@ -86,8 +86,8 @@ pub trait NodeMap { /// /// Returns `None` if no `Revision` could be found for the prefix. /// - /// If several Revisions match the given prefix, a [`MultipleResults`] - /// error is returned. + /// If several Revisions match the given prefix, a + /// [MultipleResults](NodeMapError) error is returned. fn unique_prefix_len_bin( &self, idx: &impl RevlogIndex, @@ -113,7 +113,7 @@ pub trait MutableNodeMap: NodeMap { ) -> Result<(), NodeMapError>; } -/// Low level NodeTree [`Blocks`] elements +/// Low level NodeTree [`Block`] elements /// /// These are exactly as for instance on persistent storage. type RawElement = unaligned::I32Be; diff --git a/rust/hg-core/src/utils.rs b/rust/hg-core/src/utils.rs --- a/rust/hg-core/src/utils.rs +++ b/rust/hg-core/src/utils.rs @@ -301,7 +301,7 @@ pub(crate) enum MergeResult { /// calling `merge(key, left_value, right_value)` to resolve keys that exist in /// both. /// -/// CC https://github.com/bodil/im-rs/issues/166 +/// CC pub(crate) fn ordmap_union_with_merge( left: OrdMap, right: OrdMap, diff --git a/rust/hg-core/src/utils/hg_path.rs b/rust/hg-core/src/utils/hg_path.rs --- a/rust/hg-core/src/utils/hg_path.rs +++ b/rust/hg-core/src/utils/hg_path.rs @@ -479,7 +479,7 @@ impl Extend for HgPathBuf { } } -/// TODO: Once https://www.mercurial-scm.org/wiki/WindowsUTF8Plan is +/// TODO: Once is /// implemented, these conversion utils will have to work differently depending /// on the repository encoding: either `UTF-8` or `MBCS`.