Skip to content

Commit

Permalink
Fix style.
Browse files Browse the repository at this point in the history
  • Loading branch information
clarfonthey committed Oct 8, 2017
1 parent f936be4 commit d5d989e
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 4 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
target
Cargo.lock
*~
/style
8 changes: 6 additions & 2 deletions src/unix/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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")]
Expand Down
6 changes: 4 additions & 2 deletions src/windows.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit d5d989e

Please sign in to comment.