about summary refs log tree commit diff
path: root/src/liballoc_system
diff options
context:
space:
mode:
authorNick Cameron <ncameron@mozilla.com>2015-11-23 15:32:40 +1300
committerNick Cameron <ncameron@mozilla.com>2015-11-24 11:23:17 +1300
commit1f1a1e6595cb9472927cd91d523982047832aa7a (patch)
tree68f29cad27493cb7493d5bd2c786cecdaf45f3b6 /src/liballoc_system
parente24fffef8a560ddf968a866db8da96bc461f4038 (diff)
downloadrust-1f1a1e6595cb9472927cd91d523982047832aa7a.tar.gz
rust-1f1a1e6595cb9472927cd91d523982047832aa7a.zip
rustfmt: liballoc, liballoc_*, libarena
Diffstat (limited to 'src/liballoc_system')
-rw-r--r--src/liballoc_system/lib.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/liballoc_system/lib.rs b/src/liballoc_system/lib.rs
index 93b64c9caeb..1befbd61d6d 100644
--- a/src/liballoc_system/lib.rs
+++ b/src/liballoc_system/lib.rs
@@ -79,7 +79,7 @@ mod imp {
     use libc;
     use MIN_ALIGN;
 
-    extern {
+    extern "C" {
         // Apparently android doesn't have posix_memalign
         #[cfg(target_os = "android")]
         fn memalign(align: libc::size_t, size: libc::size_t) -> *mut libc::c_void;
@@ -180,7 +180,7 @@ mod imp {
         } else {
             let ptr = HeapAlloc(GetProcessHeap(), 0, (size + align) as SIZE_T) as *mut u8;
             if ptr.is_null() {
-                return ptr
+                return ptr;
             }
             align_ptr(ptr, align)
         }
@@ -196,7 +196,7 @@ mod imp {
                                   header.0 as LPVOID,
                                   (size + align) as SIZE_T) as *mut u8;
             if new.is_null() {
-                return new
+                return new;
             }
             align_ptr(new, align)
         }