pub(crate) fn convert(
bytes: &[u8],
root: &Path,
) -> Result<Converted, ConvertError>Expand description
Convert cargo fmt --check output into file diffs.
The output is a sequence of Diff in <path> at line <n>: blocks. Blocks
of one file merge into one item. A path under root becomes relative to it,
both in file and in the block header.
ยงErrors
Returns an error when the input is not UTF-8.