Fix long lines
This commit is contained in:
parent
c11c44abc0
commit
91e04f7dd2
@ -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<os::kernel32::LPSECURITY_ATTRIBUTES>();
|
||||
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")]
|
||||
|
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user