forked from mirrors/jj
8826639e4e
It's going to be easier to define a `LockedWorkingCopy` trait if it doesn't need to borrow from `WorkingCopy`, so let's remove the reference we currently have and have `LockedLocalWorkingCopy::finish()` return the new `LocalWorkingCopy` instead. I think the main disadvantage is that we now have to remember to replace the old `LocalWorkingCopy` instance by the new one, whereas the compiler would remind us before this commit. We could make `start_modification()` take an owned `self`, but that would be a bit annoying to work with when we have the instance stored in a field. |
||
---|---|---|
.. | ||
benches | ||
gen-protos | ||
src | ||
tests | ||
testutils | ||
Cargo.toml | ||
LICENSE |