Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix !unix builds #90

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -261,7 +261,7 @@ pub fn unix<F: Clone>(formatter: F) -> Result<Logger<LoggerBackend, F>> {

#[cfg(not(unix))]
pub fn unix<F: Clone>(_formatter: F) -> Result<Logger<LoggerBackend, F>> {
Err(ErrorKind::UnsupportedPlatform)?
Err(io::ErrorKind::UnsupportedPlatform)?
}

/// Returns a Logger using unix socket to target local syslog at user provided path
Expand All @@ -272,7 +272,7 @@ pub fn unix_custom<P: AsRef<Path>, F>(formatter: F, path: P) -> Result<Logger<Lo

#[cfg(not(unix))]
pub fn unix_custom<P: AsRef<Path>, F>(_formatter: F, _path: P) -> Result<Logger<LoggerBackend, F>> {
Err(ErrorKind::UnsupportedPlatform)?
Err(io::ErrorKind::UnsupportedPlatform)?
}

#[cfg(unix)]
Expand Down Expand Up @@ -387,7 +387,7 @@ pub fn init_unix(facility: Facility, log_level: log::LevelFilter) -> Result<()>

#[cfg(not(unix))]
pub fn init_unix(_facility: Facility, _log_level: log::LevelFilter) -> Result<()> {
Err(ErrorKind::UnsupportedPlatform)?
Err(io::ErrorKind::UnsupportedPlatform)?
}

/// Unix socket Logger init function compatible with log crate and user provided socket path
Expand Down Expand Up @@ -419,7 +419,7 @@ pub fn init_unix_custom<P: AsRef<Path>>(
_log_level: log::LevelFilter,
_path: P,
) -> Result<()> {
Err(ErrorKind::UnsupportedPlatform)?
Err(io::ErrorKind::UnsupportedPlatform)?
}

/// UDP Logger init function compatible with log crate
Expand Down