Skip to content

Commit 57d0d26

Browse files
committed
---
yaml --- r: 31452 b: refs/heads/dist-snap c: c60a6b9 h: refs/heads/master v: v3
1 parent e8a5403 commit 57d0d26

File tree

2 files changed

+4
-6
lines changed

2 files changed

+4
-6
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,6 @@ refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
77
refs/heads/ndm: f3868061cd7988080c30d6d5bf352a5a5fe2460b
88
refs/heads/try2: d0c6ce338884ee21843f4b40bf6bf18d222ce5df
99
refs/heads/incoming: d9317a174e434d4c99fc1a37fd7dc0d2f5328d37
10-
refs/heads/dist-snap: 74d60a619a21e7992e58d7544d69c4e1219dd6b1
10+
refs/heads/dist-snap: c60a6b93fbb11751dfb411ee2909fa85644fe76f
1111
refs/tags/release-0.2: c870d2dffb391e14efb05aa27898f1f6333a9596
1212
refs/tags/release-0.3: b5f0d0f648d9a6153664837026ba1be43d3e2503

branches/dist-snap/src/libcore/io.rs

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -371,10 +371,8 @@ impl of writer for *libc::FILE {
371371
fn flush() -> int { libc::fflush(self) as int }
372372
fn get_type() -> writer_type {
373373
let fd = libc::fileno(self);
374-
if libc::isatty(fd) == 0 {
375-
ret file;
376-
}
377-
ret screen;
374+
if libc::isatty(fd) == 0 { file }
375+
else { screen }
378376
}
379377
}
380378

@@ -661,7 +659,7 @@ impl of writer for mem_buffer {
661659
}
662660
fn tell() -> uint { self.pos }
663661
fn flush() -> int { 0 }
664-
fn get_type() -> writer_type { ret file }
662+
fn get_type() -> writer_type { file }
665663
}
666664
667665
fn mem_buffer() -> mem_buffer {

0 commit comments

Comments
 (0)