about summary refs log tree commit diff
diff options
context:
space:
mode:
authorElly Jones <elly@leptoquark.net>2011-11-09 00:27:48 -0500
committerBrian Anderson <banderson@mozilla.com>2011-11-22 14:43:18 -0800
commit91e04f7dd2b5af90ea9513b4d8622574fcf416c7 (patch)
tree4eafec2e5064e853c1fc5686827ceea6983e3e07
parentc11c44abc03c52a0fd8dd58fcc80d571cb69e70e (diff)
downloadrust-91e04f7dd2b5af90ea9513b4d8622574fcf416c7.tar.gz
rust-91e04f7dd2b5af90ea9513b4d8622574fcf416c7.zip
Fix long lines
-rw-r--r--src/lib/fs.rs4
-rw-r--r--src/lib/rand.rs3
2 files changed, 5 insertions, 2 deletions
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<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")]
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;
             }