]> git.lizzy.rs Git - rust.git/blobdiff - src/test/run-pass-valgrind/osx-frameworks.rs
Rollup merge of #80945 - sdroege:downcast-send-sync, r=m-ou-se
[rust.git] / src / test / run-pass-valgrind / osx-frameworks.rs
index ea1403645a515976d75b2a1eaf0aac79e1abb2d7..571621c1de776d3a83576b185e023636076c3d5c 100644 (file)
@@ -6,13 +6,15 @@
 
 #[cfg(target_os = "macos")]
 #[link(name = "CoreFoundation", kind = "framework")]
-extern {
+extern "C" {
     fn CFRunLoopGetTypeID() -> libc::c_ulong;
 }
 
 #[cfg(target_os = "macos")]
 pub fn main() {
-    unsafe { CFRunLoopGetTypeID(); }
+    unsafe {
+        CFRunLoopGetTypeID();
+    }
 }
 
 #[cfg(not(target_os = "macos"))]