Skip to content

Commit d2d0536

Browse files
Elly Jonesbrson
authored andcommitted
---
yaml --- r: 6437 b: refs/heads/master c: 91e04f7 h: refs/heads/master i: 6435: 906ca38 v: v3
1 parent 49a64e5 commit d2d0536

File tree

3 files changed

+6
-3
lines changed

3 files changed

+6
-3
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
---
2-
refs/heads/master: c11c44abc03c52a0fd8dd58fcc80d571cb69e70e
2+
refs/heads/master: 91e04f7dd2b5af90ea9513b4d8622574fcf416c7

trunk/src/lib/fs.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,9 @@ fn make_dir(p: path, mode: int) -> bool {
128128
fn mkdir(_p: path, _mode: int) -> bool {
129129
// FIXME: turn mode into something useful?
130130
let noctx = ptr::null<os::kernel32::LPSECURITY_ATTRIBUTES>();
131-
ret str::as_buf(_p, {|buf| os::kernel32::CreateDirectory(buf, noctx) });
131+
ret str::as_buf(_p, {|buf|
132+
os::kernel32::CreateDirectory(buf, noctx)
133+
});
132134
}
133135

134136
#[cfg(target_os = "linux")]

trunk/src/lib/rand.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,8 @@ fn mk_rng() -> rng {
6767
let s = "";
6868
let i = 0u;
6969
while (i < len) {
70-
let n = rustrt::rand_next(**c) as uint % str::char_len(charset);
70+
let n = rustrt::rand_next(**c) as uint %
71+
str::char_len(charset);
7172
s = s + str::from_char(str::char_at(charset, n));
7273
i += 1u;
7374
}

0 commit comments

Comments
 (0)