mirror of https://github.com/helix-editor/helix
A few edits here to minimize the overall (squashed) diff:
* Minimize borrow-checker-satisfying changes in write_impl,
write_all_impl. We just need to "refresh" the bindings of `doc` and
`view` It's nice to avoid extra blocks for the `&mut` bindings since
they unnecessarily add indentation/nesting.
* Factor out the `Result<Vec<_>, _>` early in `Document::format`: this
avoids changing the indentation for the rest of the block.
With these changes the stat (git diff --stat
|
||
---|---|---|
.. | ||
src | ||
tests | ||
.gitignore | ||
Cargo.toml | ||
build.rs |