diff --git a/src/lib/fs.rs b/src/lib/fs.rs index b15ec23c5b7..0abfeb27132 100644 --- a/src/lib/fs.rs +++ b/src/lib/fs.rs @@ -128,7 +128,9 @@ fn make_dir(p: path, mode: int) -> bool { fn mkdir(_p: path, _mode: int) -> bool { // FIXME: turn mode into something useful? let noctx = ptr::null(); - ret str::as_buf(_p, {|buf| os::kernel32::CreateDirectory(buf, noctx) }); + ret str::as_buf(_p, {|buf| + os::kernel32::CreateDirectory(buf, noctx) + }); } #[cfg(target_os = "linux")] diff --git a/src/lib/rand.rs b/src/lib/rand.rs index 0f8117e901a..be350baadbe 100644 --- a/src/lib/rand.rs +++ b/src/lib/rand.rs @@ -67,7 +67,8 @@ fn mk_rng() -> rng { let s = ""; let i = 0u; while (i < len) { - let n = rustrt::rand_next(**c) as uint % str::char_len(charset); + let n = rustrt::rand_next(**c) as uint % + str::char_len(charset); s = s + str::from_char(str::char_at(charset, n)); i += 1u; }