File tree Expand file tree Collapse file tree 2 files changed +5
-8
lines changed
branches/auto/src/libnative/io Expand file tree Collapse file tree 2 files changed +5
-8
lines changed Original file line number Diff line number Diff line change @@ -13,7 +13,7 @@ refs/heads/try3: 9387340aab40a73e8424c48fd42f0c521a4875c0
13
13
refs/tags/release-0.3.1: 495bae036dfe5ec6ceafd3312b4dca48741e845b
14
14
refs/tags/release-0.4: e828ea2080499553b97dfe33b3f4d472b4562ad7
15
15
refs/tags/release-0.5: 7e3bcfbf21278251ee936ad53e92e9b719702d73
16
- refs/heads/auto: 2053b695953e530ebddeba2b8c7547858bc2e43d
16
+ refs/heads/auto: 5878b1b76bee774b6d2f2f368ce216d9084d731c
17
17
refs/heads/servo: af82457af293e2a842ba6b7759b70288da276167
18
18
refs/tags/release-0.6: b4ebcfa1812664df5e142f0134a5faea3918544c
19
19
refs/tags/0.1: b19db808c2793fe2976759b85a355c3ad8c8b336
Original file line number Diff line number Diff line change @@ -111,17 +111,14 @@ impl FileDesc {
111
111
}
112
112
113
113
impl io:: Reader for FileDesc {
114
- fn read ( & mut self , buf : & mut [ u8 ] ) -> Option < uint > {
115
- match self . inner_read ( buf) { Ok ( n ) => Some ( n ) , Err ( .. ) => None }
114
+ fn read ( & mut self , buf : & mut [ u8 ] ) -> io :: IoResult < uint > {
115
+ self . inner_read ( buf)
116
116
}
117
117
}
118
118
119
119
impl io:: Writer for FileDesc {
120
- fn write ( & mut self , buf : & [ u8 ] ) {
121
- match self . inner_write ( buf) {
122
- Ok ( ( ) ) => { }
123
- Err ( e) => { io:: io_error:: cond. raise ( e) ; }
124
- }
120
+ fn write ( & mut self , buf : & [ u8 ] ) -> io:: IoResult < ( ) > {
121
+ self . inner_write ( buf)
125
122
}
126
123
}
127
124
You can’t perform that action at this time.
0 commit comments