about summary refs log tree commit diff
path: root/src/lib
diff options
context:
space:
mode:
authorMarijn Haverbeke <marijnh@gmail.com>2011-07-27 17:05:34 +0200
committerMarijn Haverbeke <marijnh@gmail.com>2011-07-27 17:05:34 +0200
commit8365a79c7cac863343487cd73ffdedb3d2192d07 (patch)
tree6414892e1eb091dbd47ac3173954b68ae2195053 /src/lib
parentedd1a0230eb98d34f711f5857ef1e71029e27819 (diff)
Some more obj dtor reformatting
Diffstat (limited to 'src/lib')
-rw-r--r--src/lib/ioivec.rs9
-rw-r--r--src/lib/rand.rs3
2 files changed, 8 insertions, 4 deletions
diff --git a/src/lib/ioivec.rs b/src/lib/ioivec.rs
index 548a40586db..9269607b5dd 100644
--- a/src/lib/ioivec.rs
+++ b/src/lib/ioivec.rs
@@ -71,7 +71,8 @@ obj FILE_buf_reader(f: os::libc::FILE, must_close: bool) {
     }
     fn tell() -> uint {
         ret os::libc::ftell(f) as uint;
-    }drop { if must_close { os::libc::fclose(f); } }
+    }
+    drop { if must_close { os::libc::fclose(f); } }
 }
 
 
@@ -251,7 +252,8 @@ obj FILE_writer(f: os::libc::FILE, must_close: bool) {
     }
     fn tell() -> uint {
         ret os::libc::ftell(f) as uint;
-    }drop { if must_close { os::libc::fclose(f); } }
+    }
+    drop { if must_close { os::libc::fclose(f); } }
 }
 
 obj fd_buf_writer(fd: int, must_close: bool) {
@@ -277,7 +279,8 @@ obj fd_buf_writer(fd: int, must_close: bool) {
     fn tell() -> uint {
         log_err "need 64-bit native calls for tell, sorry";
         fail;
-    }drop { if must_close { os::libc::close(fd); } }
+    }
+    drop { if must_close { os::libc::close(fd); } }
 }
 
 fn file_buf_writer(path: str, flags: &fileflag[]) -> buf_writer {
diff --git a/src/lib/rand.rs b/src/lib/rand.rs
index a6cb1cbb665..77d62aaaea5 100644
--- a/src/lib/rand.rs
+++ b/src/lib/rand.rs
@@ -20,7 +20,8 @@ fn mk_rng() -> rng {
     obj rt_rng(c: rustrt::rctx) {
         fn next() -> u32 {
             ret rustrt::rand_next(c);
-        }drop { rustrt::rand_free(c); }
+        }
+        drop { rustrt::rand_free(c); }
     }
     ret rt_rng(rustrt::rand_new());
 }