Skip to content

Commit 91e04f7

Browse files
Elly Jonesbrson
authored andcommitted
Fix long lines
1 parent c11c44a commit 91e04f7

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

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")]

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)