mirror of
https://github.com/rust-lang-nursery/rust-cookbook
synced 2024-11-25 04:50:21 +00:00
fix syslog example buildbreak on windows builds
- also disable windows mingw CI builds
This commit is contained in:
parent
85c4a382ec
commit
79a6928400
2 changed files with 6 additions and 2 deletions
|
@ -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
|
||||
|
|
|
@ -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(())
|
||||
# }
|
||||
|
|
Loading…
Reference in a new issue