File tree 2 files changed +4
-5
lines changed
2 files changed +4
-5
lines changed Original file line number Diff line number Diff line change @@ -1173,9 +1173,7 @@ fn real_args_as_bytes() -> Vec<Vec<u8>> {
1173
1173
let utf_c_str: * const libc:: c_char =
1174
1174
mem:: transmute ( objc_msgSend ( tmp, utf8Sel) ) ;
1175
1175
let s = CString :: new ( utf_c_str, false ) ;
1176
- if s. is_not_null ( ) {
1177
- res. push ( s. as_bytes_no_nul ( ) . to_vec ( ) )
1178
- }
1176
+ res. push ( s. as_bytes_no_nul ( ) . to_vec ( ) )
1179
1177
}
1180
1178
}
1181
1179
Original file line number Diff line number Diff line change @@ -278,9 +278,10 @@ mod imp {
278
278
let cnt = unsafe { backtrace ( buf. as_mut_ptr ( ) , SIZE as libc:: c_int ) as uint } ;
279
279
280
280
// skipping the first one as it is write itself
281
- result :: fold_ ( range ( 1 , cnt) . map ( |i| {
281
+ let iter = range ( 1 , cnt) . map ( |i| {
282
282
print ( w, i as int , buf[ i] )
283
- } ) )
283
+ } ) ;
284
+ result:: fold ( iter, ( ) , |_, _| ( ) )
284
285
}
285
286
286
287
#[ cfg( not( target_os = "ios" , target_arch = "arm" ) ) ]
You can’t perform that action at this time.
0 commit comments