@@ -172,8 +172,7 @@ impl FileDescription for io::Stdout {
172
172
// the host -- there is no good in adding extra buffering
173
173
// here.
174
174
io:: stdout ( ) . flush ( ) . unwrap ( ) ;
175
- ecx. return_written_byte_count_or_error ( result, dest) ?;
176
- Ok ( ( ) )
175
+ ecx. return_written_byte_count_or_error ( result, dest)
177
176
}
178
177
179
178
fn is_tty ( & self , communicate_allowed : bool ) -> bool {
@@ -197,8 +196,7 @@ impl FileDescription for io::Stderr {
197
196
// We allow writing to stderr even with isolation enabled.
198
197
// No need to flush, stderr is not buffered.
199
198
let result = Write :: write ( & mut { self } , bytes) ;
200
- ecx. return_written_byte_count_or_error ( result, dest) ?;
201
- Ok ( ( ) )
199
+ ecx. return_written_byte_count_or_error ( result, dest)
202
200
}
203
201
204
202
fn is_tty ( & self , communicate_allowed : bool ) -> bool {
@@ -225,8 +223,7 @@ impl FileDescription for NullOutput {
225
223
) -> InterpResult < ' tcx > {
226
224
// We just don't write anything, but report to the user that we did.
227
225
let result = Ok ( bytes. len ( ) ) ;
228
- ecx. return_written_byte_count_or_error ( result, dest) ?;
229
- Ok ( ( ) )
226
+ ecx. return_written_byte_count_or_error ( result, dest)
230
227
}
231
228
}
232
229
0 commit comments