From f368f43a7b7b7c3721cb09c79dfd29aacc0818f1 Mon Sep 17 00:00:00 2001 From: Nick Cameron Date: Tue, 19 Jan 2016 14:51:22 +1300 Subject: [PATCH] rustfmt libterm --- src/libterm/lib.rs | 4 ++-- src/libterm/terminfo/mod.rs | 4 ++-- src/libterm/win.rs | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/libterm/lib.rs b/src/libterm/lib.rs index d4c9cb8e254..df1fedf3d4e 100644 --- a/src/libterm/lib.rs +++ b/src/libterm/lib.rs @@ -74,9 +74,9 @@ pub mod terminfo; mod win; /// Alias for stdout terminals. -pub type StdoutTerminal = Terminal + Send; +pub type StdoutTerminal = Terminal + Send; /// Alias for stderr terminals. -pub type StderrTerminal = Terminal + Send; +pub type StderrTerminal = Terminal + Send; #[cfg(not(windows))] /// Return a Terminal wrapping stdout, or None if a terminal couldn't be diff --git a/src/libterm/terminfo/mod.rs b/src/libterm/terminfo/mod.rs index a4e5d00ee7a..04486132c84 100644 --- a/src/libterm/terminfo/mod.rs +++ b/src/libterm/terminfo/mod.rs @@ -151,7 +151,7 @@ pub struct TerminfoTerminal { ti: TermInfo, } -impl Terminal for TerminfoTerminal { +impl Terminal for TerminfoTerminal { type Output = T; fn fg(&mut self, color: color::Color) -> io::Result { let color = self.dim_if_necessary(color); @@ -220,7 +220,7 @@ impl Terminal for TerminfoTerminal { } } -impl TerminfoTerminal { +impl TerminfoTerminal { /// Create a new TerminfoTerminal with the given TermInfo and Write. pub fn new_with_terminfo(out: T, terminfo: TermInfo) -> TerminfoTerminal { let nc = if terminfo.strings.contains_key("setaf") && diff --git a/src/libterm/win.rs b/src/libterm/win.rs index 2cb7018669d..d36b182710b 100644 --- a/src/libterm/win.rs +++ b/src/libterm/win.rs @@ -91,7 +91,7 @@ fn bits_to_color(bits: u16) -> color::Color { color | (bits & 0x8) // copy the hi-intensity bit } -impl WinConsole { +impl WinConsole { fn apply(&mut self) { let _unused = self.buf.flush(); let mut accum: WORD = 0; @@ -148,7 +148,7 @@ impl Write for WinConsole { } } -impl Terminal for WinConsole { +impl Terminal for WinConsole { type Output = T; fn fg(&mut self, color: color::Color) -> io::Result {