Skip to content

Commit

Permalink
fix: windows build fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
pamburus committed Aug 19, 2020
1 parent 6821581 commit dad3f07
Show file tree
Hide file tree
Showing 3 changed files with 31 additions and 5 deletions.
18 changes: 13 additions & 5 deletions src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,18 +1,26 @@
// public modules
pub mod app;
pub mod datefmt;
pub mod error;
mod eseq;
pub mod fmtx;
mod formatting;
pub mod input;
mod model;
pub mod output;
mod scanning;
pub mod signal;
pub mod theme;
pub mod timestamp;
pub mod types;

// private modules
mod eseq;
mod formatting;
mod model;
mod scanning;

// conditional public modules
#[cfg_attr(unix, path = "signal_unix.rs")]
#[cfg_attr(windows, path = "signal_windows.rs")]
pub mod signal;

// public uses
pub use app::App;
pub use app::Options;
pub use model::FieldFilterSet;
Expand Down
File renamed without changes.
18 changes: 18 additions & 0 deletions src/signal_windows.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
// std imports
use std::time::Duration;

// local imports
use crate::error::*;

// ---

pub struct SignalHandler {}

impl SignalHandler {
pub fn run<F>(_: usize, _: Duration, f: F) -> Result<()>
where
F: FnOnce() -> Result<()>,
{
f()
}
}

0 comments on commit dad3f07

Please sign in to comment.