about summary refs log tree commit diff
path: root/tests/codegen/array-cmp.rs
diff options
context:
space:
mode:
Diffstat (limited to 'tests/codegen/array-cmp.rs')
-rw-r--r--tests/codegen/array-cmp.rs11
1 files changed, 6 insertions, 5 deletions
diff --git a/tests/codegen/array-cmp.rs b/tests/codegen/array-cmp.rs
index 194c0adf1d2..2565a385b61 100644
--- a/tests/codegen/array-cmp.rs
+++ b/tests/codegen/array-cmp.rs
@@ -10,9 +10,10 @@
 #[no_mangle]
 pub fn compare() -> bool {
     let bytes = 12.5f32.to_ne_bytes();
-    bytes == if cfg!(target_endian = "big") {
-        [0x41, 0x48, 0x00, 0x00]
-    } else {
-        [0x00, 0x00, 0x48, 0x41]
-    }
+    bytes
+        == if cfg!(target_endian = "big") {
+            [0x41, 0x48, 0x00, 0x00]
+        } else {
+            [0x00, 0x00, 0x48, 0x41]
+        }
 }