Skip to content

Commit 88f35de

Browse files
committed
fix formatting
1 parent 27e9f74 commit 88f35de

File tree

1 file changed

+14
-4
lines changed
  • library/std/src/sys/pal/unix

1 file changed

+14
-4
lines changed

library/std/src/sys/pal/unix/weak.rs

+14-4
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,13 @@ use crate::ptr;
2828
use crate::sync::atomic::{self, AtomicPtr, Ordering};
2929

3030
// We can use true weak linkage on ELF targets.
31-
#[cfg(not(any(target_os = "macos", target_os = "ios", target_os = "tvos", target_os = "watchos",
32-
target_os = "visionos")))]
31+
#[cfg(not(any(
32+
target_os = "macos",
33+
target_os = "ios",
34+
target_os = "tvos",
35+
target_os = "watchos",
36+
target_os = "visionos",
37+
)))]
3338
pub(crate) macro weak {
3439
(fn $name:ident($($t:ty),*) -> $ret:ty) => (
3540
let ref $name: ExternWeak<unsafe extern "C" fn($($t),*) -> $ret> = {
@@ -44,8 +49,13 @@ pub(crate) macro weak {
4449
}
4550

4651
// On non-ELF targets, use the dlsym approximation of weak linkage.
47-
#[cfg(any(target_os = "macos", target_os = "ios", target_os = "tvos", target_os = "watchos",
48-
target_os = "visionos"))]
52+
#[cfg(any(
53+
target_os = "macos",
54+
target_os = "ios",
55+
target_os = "tvos",
56+
target_os = "watchos",
57+
target_os = "visionos",
58+
))]
4959
pub(crate) use self::dlsym as weak;
5060

5161
pub(crate) struct ExternWeak<F: Copy> {

0 commit comments

Comments
 (0)