diff --git a/.gitignore b/.gitignore index f0ff2599d09b5..48fdc77961230 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,4 @@ target Cargo.lock *~ +/style diff --git a/src/unix/mod.rs b/src/unix/mod.rs index 398447b030e9d..6d62e72f9ae25 100644 --- a/src/unix/mod.rs +++ b/src/unix/mod.rs @@ -229,8 +229,12 @@ cfg_if! { // cargo build, don't pull in anything extra as the libstd dep // already pulls in all libs. } else if #[cfg(any(all(target_env = "musl", not(target_arch = "mips"))))] { - #[cfg_attr(stdbuild, link(name = "c", kind = "static", cfg(target_feature = "crt-static")))] - #[cfg_attr(stdbuild, link(name = "c", cfg(not(target_feature = "crt-static"))))] + #[cfg_attr(stdbuild, + link(name = "c", kind = "static", + cfg(target_feature = "crt-static")))] + #[cfg_attr(stdbuild, + link(name = "c", + cfg(not(target_feature = "crt-static"))))] extern {} } else if #[cfg(target_os = "emscripten")] { #[link(name = "c")] diff --git a/src/windows.rs b/src/windows.rs index 0630e9ef31421..0a74f1d57d292 100644 --- a/src/windows.rs +++ b/src/windows.rs @@ -160,8 +160,10 @@ pub const STRUNCATE: ::c_int = 80; // inline comment below appeases style checker #[cfg(all(target_env = "msvc", feature = "stdbuild"))] // " if " -#[cfg_attr(stdbuild, link(name = "msvcrt", cfg(not(target_feature = "crt-static"))))] -#[cfg_attr(stdbuild, link(name = "libcmt", cfg(target_feature = "crt-static")))] +#[cfg_attr(stdbuild, + link(name = "msvcrt", cfg(not(target_feature = "crt-static"))))] +#[cfg_attr(stdbuild, + link(name = "libcmt", cfg(target_feature = "crt-static")))] extern {} extern {