# HG changeset patch # User Georges Racinet # Date 1680528759 -7200 # 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 -r 071a6c1d291e -r 331a3cbe1c9e rust/hg-core/src/checkexec.rs --- a/rust/hg-core/src/checkexec.rs Thu Mar 30 12:21:38 2023 +0200 +++ b/rust/hg-core/src/checkexec.rs Mon Apr 03 15:32:39 2023 +0200 @@ -112,7 +112,7 @@ Ok(false) } -/// This function is a rust rewrite of [checkexec] function from [posix.py] +/// This function is a rust rewrite of `checkexec` function from `posix.py` /// Returns true if the filesystem supports execute permissions. pub fn check_exec(path: impl AsRef) -> bool { check_exec_impl(path).unwrap_or(false) diff -r 071a6c1d291e -r 331a3cbe1c9e rust/hg-core/src/revlog/nodemap.rs --- a/rust/hg-core/src/revlog/nodemap.rs Thu Mar 30 12:21:38 2023 +0200 +++ b/rust/hg-core/src/revlog/nodemap.rs Mon Apr 03 15:32:39 2023 +0200 @@ -69,8 +69,8 @@ /// /// 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 @@ /// /// 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 @@ ) -> 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 -r 071a6c1d291e -r 331a3cbe1c9e rust/hg-core/src/utils.rs --- a/rust/hg-core/src/utils.rs Thu Mar 30 12:21:38 2023 +0200 +++ b/rust/hg-core/src/utils.rs Mon Apr 03 15:32:39 2023 +0200 @@ -301,7 +301,7 @@ /// 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 -r 071a6c1d291e -r 331a3cbe1c9e rust/hg-core/src/utils/hg_path.rs --- a/rust/hg-core/src/utils/hg_path.rs Thu Mar 30 12:21:38 2023 +0200 +++ b/rust/hg-core/src/utils/hg_path.rs Mon Apr 03 15:32:39 2023 +0200 @@ -479,7 +479,7 @@ } } -/// 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`.