mirror of
https://github.com/sharkdp/hexyl.git
synced 2026-10-26 20:16:34 +00:00
Inline StdoutLock variable
This commit is contained in:
1 parent
74a5e4bc84
commit
166c2cc46b
1 file changed
+1
-2
+1
-2
@@ -332,8 +332,7 @@ fn run() -> Result<(), AnyhowError> {
|
||||
2
|
||||
};
|
||||
|
||||
let stdout = io::stdout();
|
||||
let mut stdout_lock = BufWriter::new(stdout.lock());
|
||||
let mut stdout_lock = BufWriter::new(io::stdout().lock());
|
||||
|
||||
let mut printer = PrinterBuilder::new(&mut stdout_lock)
|
||||
.show_color(show_color)
|
||||
|
||||
Reference in new issue
Block a user