From 966421c522b07f2f999fcaebddea7e5abe26655a Mon Sep 17 00:00:00 2001 From: Sharif Haason Date: Sat, 8 Oct 2022 10:03:38 -0400 Subject: [PATCH] Undo inlining to satisfy MSRV --- src/bin/hexyl.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/bin/hexyl.rs b/src/bin/hexyl.rs index bb4cce3..6544ec7 100644 --- a/src/bin/hexyl.rs +++ b/src/bin/hexyl.rs @@ -332,7 +332,8 @@ fn run() -> Result<(), AnyhowError> { 2 }; - let mut stdout_lock = BufWriter::new(io::stdout().lock()); + let stdout = io::stdout(); + let mut stdout_lock = BufWriter::new(stdout.lock()); let mut printer = PrinterBuilder::new(&mut stdout_lock) .show_color(show_color)