mirror of
https://github.com/crate-ci/typos.git
synced 2024-11-29 04:21:06 -05:00
Merge pull request #308 from epage/print
Improve behavior for diff mode
This commit is contained in:
commit
1559bc74bf
1 changed files with 3 additions and 1 deletions
|
@ -235,8 +235,10 @@ impl FileChecker for DiffTypos {
|
||||||
"fixed",
|
"fixed",
|
||||||
0,
|
0,
|
||||||
);
|
);
|
||||||
|
let stdout = std::io::stdout();
|
||||||
|
let mut handle = stdout.lock();
|
||||||
for line in diff {
|
for line in diff {
|
||||||
print!("{}", line);
|
write!(handle, "{}", line)?;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue