mirror of
https://github.com/crate-ci/typos.git
synced 2024-12-26 01:22:08 -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",
|
||||
0,
|
||||
);
|
||||
let stdout = std::io::stdout();
|
||||
let mut handle = stdout.lock();
|
||||
for line in diff {
|
||||
print!("{}", line);
|
||||
write!(handle, "{}", line)?;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue