fixed formatting

This commit is contained in:
IGI-111 2016-07-20 11:03:30 +02:00
parent 206c61de9e
commit ab12a8f8a6
1 changed files with 7 additions and 9 deletions

View File

@ -73,9 +73,9 @@ impl<W: Write> Write for RawTerminal<W> {
pub trait IntoRawMode: Write + Sized { pub trait IntoRawMode: Write + Sized {
/// Switch to raw mode. /// Switch to raw mode.
/// ///
/// Raw mode means that stdin won't be printed (it will instead have to be written manually by the /// Raw mode means that stdin won't be printed (it will instead have to be written manually by
/// program). Furthermore, the input isn't canonicalised or buffered (that is, you can read from /// the program). Furthermore, the input isn't canonicalised or buffered (that is, you can
/// stdin one byte of a time). The output is neither modified in any way. /// read from stdin one byte of a time). The output is neither modified in any way.
fn into_raw_mode(self) -> io::Result<RawTerminal<Self>>; fn into_raw_mode(self) -> io::Result<RawTerminal<Self>>;
} }
@ -110,9 +110,7 @@ impl<W: Write> IntoRawMode for W {
use control::TermWrite; use control::TermWrite;
self.csi(b"r").map(|_| { self.csi(b"r").map(|_| {
let mut res = RawTerminal { let mut res = RawTerminal { output: self };
output: self,
};
res res
}) })
} }