about summary refs log tree commit diff
diff options
context:
space:
mode:
authorTim Chevalier <chevalier@alum.wellesley.edu>2012-07-26 17:04:52 -0700
committerTim Chevalier <chevalier@alum.wellesley.edu>2012-07-26 17:06:09 -0700
commitc60a6b93fbb11751dfb411ee2909fa85644fe76f (patch)
tree44d38c69503ac361f83badbc09437f0ff7c97c45
parent74d60a619a21e7992e58d7544d69c4e1219dd6b1 (diff)
Remove superfluous rets (purely style)
-rw-r--r--src/libcore/io.rs8
1 files changed, 3 insertions, 5 deletions
diff --git a/src/libcore/io.rs b/src/libcore/io.rs
index 8485818e2d6..492ea83c4a1 100644
--- a/src/libcore/io.rs
+++ b/src/libcore/io.rs
@@ -371,10 +371,8 @@ impl of writer for *libc::FILE {
     fn flush() -> int { libc::fflush(self) as int }
     fn get_type() -> writer_type {
         let fd = libc::fileno(self);
-        if libc::isatty(fd) == 0 {
-            ret file;
-        }
-        ret screen;
+        if libc::isatty(fd) == 0 { file   }
+        else                     { screen }
     }
 }
 
@@ -661,7 +659,7 @@ impl of writer for mem_buffer {
     }
     fn tell() -> uint { self.pos }
     fn flush() -> int { 0 }
-    fn get_type() -> writer_type { ret file }
+    fn get_type() -> writer_type { file }
 }
 
 fn mem_buffer() -> mem_buffer {