D8110: rust-dirstatemap: cache non normal and other parent set

kevincox (Kevin Cox) phabricator at mercurial-scm.org
Fri Feb 14 09:39:10 UTC 2020


kevincox added inline comments.

INLINE COMMENTS

> Alphare wrote in dirstate_map.rs:251
> Unwrapping creates a temporary value that is dropped instantly, so unless I'm not seeing something, I don't think we can.

You should be able to use `.as_mut()` just like you are currently doing in the caller.

REPOSITORY
  rHG Mercurial

CHANGES SINCE LAST ACTION
  https://phab.mercurial-scm.org/D8110/new/

REVISION DETAIL
  https://phab.mercurial-scm.org/D8110

To: marmoute, #hg-reviewers, Alphare
Cc: Alphare, kevincox, mercurial-devel


More information about the Mercurial-devel mailing list