about summary refs log tree commit diff
diff options
context:
space:
mode:
authorGeoffry Song <goffrie@gmail.com>2024-08-21 15:34:51 -0700
committerGitHub <noreply@github.com>2024-08-21 15:34:51 -0700
commit40481fc70a8626f9e58242b0fb673d90ade2f084 (patch)
tree0574f5954aca8644ca4b5ad842d2329017a454b3
parentd7b2fd4213971edd09ed72f9a6541a036d016666 (diff)
downloadrust-40481fc70a8626f9e58242b0fb673d90ade2f084.tar.gz
rust-40481fc70a8626f9e58242b0fb673d90ade2f084.zip
format
-rw-r--r--library/std/src/sys/pal/windows/c.rs11
1 files changed, 2 insertions, 9 deletions
diff --git a/library/std/src/sys/pal/windows/c.rs b/library/std/src/sys/pal/windows/c.rs
index 8900410cf60..b888eb7d95c 100644
--- a/library/std/src/sys/pal/windows/c.rs
+++ b/library/std/src/sys/pal/windows/c.rs
@@ -112,16 +112,9 @@ if #[cfg(not(target_vendor = "uwp"))] {
 #[cfg(not(target_vendor = "win7"))]
 #[cfg_attr(
     target_arch = "x86",
-    link(
-        name = "bcryptprimitives",
-        kind = "raw-dylib",
-        import_name_type = "undecorated"
-    )
-)]
-#[cfg_attr(
-    not(target_arch = "x86"),
-    link(name = "bcryptprimitives", kind = "raw-dylib")
+    link(name = "bcryptprimitives", kind = "raw-dylib", import_name_type = "undecorated")
 )]
+#[cfg_attr(not(target_arch = "x86"), link(name = "bcryptprimitives", kind = "raw-dylib"))]
 extern "system" {
     pub fn ProcessPrng(pbdata: *mut u8, cbdata: usize) -> BOOL;
 }