about summary refs log tree commit diff
path: root/src/source_map.rs
diff options
context:
space:
mode:
authorIgor Matuszewski <Xanewok@gmail.com>2019-03-01 19:20:57 +0100
committerIgor Matuszewski <Xanewok@gmail.com>2019-03-04 18:19:30 +0100
commitb3c28dba830fb7c88133a0a402f02a5dff9d0738 (patch)
tree9e9c13fa33180f6b3d9903dac3b88b3b689e452d /src/source_map.rs
parent0437bf7a7d968af885dc05931e4e7d1eaddaadbf (diff)
Expose ModifiedLines and implement parsing data from the string output
This moves `Modified{Chunks,Lines}` from `src/formatting.rs` to
`src/rustfmt_diff.rs` and reexports it in `src/lib.rs`.

With this, a conversion from `Vec<Mismatch>` to `ModifiedLines` was implemented
and now this implements complementary `Display` and `FromStr`, which
simplified the previously used `output_modified` function and which allows to
parse the raw data emitted with `EmitMode::ModifiedLines`.
Diffstat (limited to 'src/source_map.rs')
0 files changed, 0 insertions, 0 deletions