Skip to content

Commit d5d989e

Browse files
author
Clar Charr
committed
Fix style.
1 parent f936be4 commit d5d989e

File tree

3 files changed

+11
-4
lines changed

3 files changed

+11
-4
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
target
22
Cargo.lock
33
*~
4+
/style

src/unix/mod.rs

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -229,8 +229,12 @@ cfg_if! {
229229
// cargo build, don't pull in anything extra as the libstd dep
230230
// already pulls in all libs.
231231
} else if #[cfg(any(all(target_env = "musl", not(target_arch = "mips"))))] {
232-
#[cfg_attr(stdbuild, link(name = "c", kind = "static", cfg(target_feature = "crt-static")))]
233-
#[cfg_attr(stdbuild, link(name = "c", cfg(not(target_feature = "crt-static"))))]
232+
#[cfg_attr(stdbuild,
233+
link(name = "c", kind = "static",
234+
cfg(target_feature = "crt-static")))]
235+
#[cfg_attr(stdbuild,
236+
link(name = "c",
237+
cfg(not(target_feature = "crt-static"))))]
234238
extern {}
235239
} else if #[cfg(target_os = "emscripten")] {
236240
#[link(name = "c")]

src/windows.rs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -160,8 +160,10 @@ pub const STRUNCATE: ::c_int = 80;
160160

161161
// inline comment below appeases style checker
162162
#[cfg(all(target_env = "msvc", feature = "stdbuild"))] // " if "
163-
#[cfg_attr(stdbuild, link(name = "msvcrt", cfg(not(target_feature = "crt-static"))))]
164-
#[cfg_attr(stdbuild, link(name = "libcmt", cfg(target_feature = "crt-static")))]
163+
#[cfg_attr(stdbuild,
164+
link(name = "msvcrt", cfg(not(target_feature = "crt-static"))))]
165+
#[cfg_attr(stdbuild,
166+
link(name = "libcmt", cfg(target_feature = "crt-static")))]
165167
extern {}
166168

167169
extern {

0 commit comments

Comments
 (0)