about summary refs log tree commit diff
path: root/src/liballoc_system
diff options
context:
space:
mode:
authorSrinivas Reddy Thatiparthy <thatiparthysreenivas@gmail.com>2016-10-16 15:41:01 +0530
committerSrinivas Reddy Thatiparthy <thatiparthysreenivas@gmail.com>2016-10-16 15:41:01 +0530
commit54e320d4bce4a397d165739fda8329a0567b35c4 (patch)
tree2bae89e04abbdfc475eaeeaaee4b67d2324cf9f5 /src/liballoc_system
parent6dc035ed911672c6a1f7afc9eed15fb08e574e5b (diff)
downloadrust-54e320d4bce4a397d165739fda8329a0567b35c4.tar.gz
rust-54e320d4bce4a397d165739fda8329a0567b35c4.zip
run rustfmt on various folders
Diffstat (limited to 'src/liballoc_system')
-rw-r--r--src/liballoc_system/lib.rs6
1 files changed, 1 insertions, 5 deletions
diff --git a/src/liballoc_system/lib.rs b/src/liballoc_system/lib.rs
index dacafe771ed..b380ba180f4 100644
--- a/src/liballoc_system/lib.rs
+++ b/src/liballoc_system/lib.rs
@@ -221,11 +221,7 @@ mod imp {
                                   HEAP_REALLOC_IN_PLACE_ONLY,
                                   ptr as LPVOID,
                                   size as SIZE_T) as *mut u8;
-            if new.is_null() {
-                old_size
-            } else {
-                size
-            }
+            if new.is_null() { old_size } else { size }
         } else {
             old_size
         }