Fix cfg_if usage

This commit is contained in:
Jeremy Soller 2019-08-06 19:32:39 -06:00
parent 0498da9a3d
commit ebb648d4fb
No known key found for this signature in database
GPG Key ID: E988B49EE78A7FB1
2 changed files with 2 additions and 2 deletions

View File

@ -25,7 +25,7 @@ use libc::{c_int, c_char, c_void};
const TMPBUF_SZ: usize = 128; const TMPBUF_SZ: usize = 128;
cfg_if! { cfg_if::cfg_if! {
if #[cfg(target_os = "redox")] { if #[cfg(target_os = "redox")] {
const PATH_SEPARATOR: u8 = b';'; const PATH_SEPARATOR: u8 = b';';
} else { } else {

View File

@ -12,7 +12,7 @@ use crate::collections::BTreeMap;
use libc::{c_int, gid_t, uid_t, c_char, EXIT_SUCCESS, EXIT_FAILURE}; 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")] { if #[cfg(target_os = "redox")] {
const DEV_NULL: &'static str = "null:\0"; const DEV_NULL: &'static str = "null:\0";
} else { } else {