Skip to content

Commit 85dd543

Browse files
committed
---
yaml --- r: 134171 b: refs/heads/master c: 4d69696 h: refs/heads/master i: 134169: bd55929 134167: 4cf761b v: v3
1 parent f2d2aa0 commit 85dd543

File tree

3 files changed

+5
-6
lines changed

3 files changed

+5
-6
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
refs/heads/master: fd52224e78fe14828f8750fed469cc5c40f260e7
2+
refs/heads/master: 4d69696ff62fb9f069fd8f64eaa0defe4c8c9cf7
33
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
44
refs/heads/snap-stage3: 437179ed8bf7f7672f84b19265df1ce569e70490
55
refs/heads/try: 777654cfccbfa39bc7f671d8e9629018ed8ca12d

trunk/src/libstd/os.rs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1173,9 +1173,7 @@ fn real_args_as_bytes() -> Vec<Vec<u8>> {
11731173
let utf_c_str: *const libc::c_char =
11741174
mem::transmute(objc_msgSend(tmp, utf8Sel));
11751175
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())
11791177
}
11801178
}
11811179

trunk/src/libstd/rt/backtrace.rs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -278,9 +278,10 @@ mod imp {
278278
let cnt = unsafe { backtrace(buf.as_mut_ptr(), SIZE as libc::c_int) as uint};
279279

280280
// 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| {
282282
print(w, i as int, buf[i])
283-
}))
283+
});
284+
result::fold(iter, (), |_, _| ())
284285
}
285286

286287
#[cfg(not(target_os = "ios", target_arch = "arm"))]

0 commit comments

Comments
 (0)