Skip to content

Commit

Permalink
Fix cfg_if usage
Browse files Browse the repository at this point in the history
  • Loading branch information
jackpot51 committed Aug 7, 2019
1 parent 0498da9 commit ebb648d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/libstd/sys/unix/os.rs
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ use libc::{c_int, c_char, c_void};

const TMPBUF_SZ: usize = 128;

cfg_if! {
cfg_if::cfg_if! {
if #[cfg(target_os = "redox")] {
const PATH_SEPARATOR: u8 = b';';
} else {
Expand Down
2 changes: 1 addition & 1 deletion src/libstd/sys/unix/process/process_common.rs
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ use crate::collections::BTreeMap;

use libc::{c_int, gid_t, uid_t, c_char, EXIT_SUCCESS, EXIT_FAILURE};

cfg_if! {
cfg_if::cfg_if! {
if #[cfg(target_os = "redox")] {
const DEV_NULL: &'static str = "null:\0";
} else {
Expand Down

0 comments on commit ebb648d

Please sign in to comment.