mirror of
https://github.com/rust-lang/rust.git
synced 2025-04-28 11:07:42 +00:00
Remove superfluous rets (purely style)
This commit is contained in:
parent
74d60a619a
commit
c60a6b93fb
@ -371,10 +371,8 @@ impl of writer for *libc::FILE {
|
|||||||
fn flush() -> int { libc::fflush(self) as int }
|
fn flush() -> int { libc::fflush(self) as int }
|
||||||
fn get_type() -> writer_type {
|
fn get_type() -> writer_type {
|
||||||
let fd = libc::fileno(self);
|
let fd = libc::fileno(self);
|
||||||
if libc::isatty(fd) == 0 {
|
if libc::isatty(fd) == 0 { file }
|
||||||
ret file;
|
else { screen }
|
||||||
}
|
|
||||||
ret screen;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -661,7 +659,7 @@ impl of writer for mem_buffer {
|
|||||||
}
|
}
|
||||||
fn tell() -> uint { self.pos }
|
fn tell() -> uint { self.pos }
|
||||||
fn flush() -> int { 0 }
|
fn flush() -> int { 0 }
|
||||||
fn get_type() -> writer_type { ret file }
|
fn get_type() -> writer_type { file }
|
||||||
}
|
}
|
||||||
|
|
||||||
fn mem_buffer() -> mem_buffer {
|
fn mem_buffer() -> mem_buffer {
|
||||||
|
Loading…
Reference in New Issue
Block a user