From 8760faca15039f7a74e7a9cfb2318ec97af152e1 Mon Sep 17 00:00:00 2001 From: IGI-111 Date: Mon, 13 Mar 2017 11:49:24 +0100 Subject: [PATCH] no need for templating --- src/color.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/color.rs b/src/color.rs index 26c9fd2..1cdf32c 100644 --- a/src/color.rs +++ b/src/color.rs @@ -211,10 +211,10 @@ impl DetectColors for W { } /// Detect a color using OSC 4. -fn detect_color(stdout: &mut W, - stdin: &mut Read, - color: u16) - -> io::Result { +fn detect_color(stdout: &mut Write, + stdin: &mut Read, + color: u16) + -> io::Result { // Is the color available? // Use `ESC ] 4 ; color ; ? BEL`. write!(stdout, "\x1B]4;{};?\x07", color)?;