D7791: rust-nodemap: NodeMap trait with simplest implementor
kevincox (Kevin Cox)
phabricator at mercurial-scm.org
Thu Jan 16 05:08:56 EST 2020
kevincox added inline comments.
kevincox accepted this revision.
INLINE COMMENTS
> nodemap.rs:37
> +/// whose data should not be owned by the `NodeMap`.
> +pub trait NodeMap {
> + fn find_bin<'a>(
Can you please add doc-comments for this? I find that documenting trait methods is especially important.
> nodemap.rs:205
> +impl fmt::Debug for NodeTree {
> + fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
> + let blocks: &[Block] = &*self.readonly;
I don't think the `<'_>` is necessary.
REPOSITORY
rHG Mercurial
CHANGES SINCE LAST ACTION
https://phab.mercurial-scm.org/D7791/new/
REVISION DETAIL
https://phab.mercurial-scm.org/D7791
To: gracinet, #hg-reviewers, kevincox
Cc: durin42, kevincox, mercurial-devel
More information about the Mercurial-devel
mailing list