fix syslog example buildbreak on windows builds

- also disable windows mingw CI builds
This commit is contained in:
Michal Budzynski 2017-08-22 21:41:46 +02:00 committed by Michał Budzyński
parent 85c4a382ec
commit 79a6928400
2 changed files with 6 additions and 2 deletions

View file

@ -6,8 +6,8 @@ environment:
CRATE_NAME: rust-cookbook
matrix:
- TARGET: x86_64-pc-windows-gnu
RUST_VERSION: stable
# - TARGET: x86_64-pc-windows-gnu
# RUST_VERSION: stable
- TARGET: x86_64-pc-windows-msvc
RUST_VERSION: stable
- TARGET: x86_64-pc-windows-msvc

View file

@ -386,6 +386,7 @@ with [`syslog::init`]. [`syslog::Facility`] indicates type of program submitting
and `Option<&str>` holds optional application name.
```rust,no_run
# #![allow(unused_imports)]
# #[macro_use]
# extern crate error_chain;
#[macro_use]
@ -397,6 +398,7 @@ use log::LogLevelFilter;
# #[cfg(target_os = "linux")]
use syslog::Facility;
#
# #[cfg(target_os = "linux")]
# error_chain! {
# foreign_links {
# SetLogger(syslog::SyslogError);
@ -414,6 +416,8 @@ fn run() -> Result<()> {
}
#
# #[cfg(not(target_os = "linux"))]
# error_chain! {}
# #[cfg(not(target_os = "linux"))]
# fn run() -> Result<()> {
# Ok(())
# }