mirror of
https://github.com/crate-ci/typos.git
synced 2026-10-18 18:05:11 +02:00
Merge pull request #308 from epage/print
Improve behavior for diff mode
This commit is contained in:
+3
-1
@@ -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)?;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user