Skip to content

Commit

Permalink
add a comment
Browse files Browse the repository at this point in the history
  • Loading branch information
taiki-e committed Jul 22, 2019
1 parent edca75d commit 2baee47
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions tokio-threadpool/src/config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ pub(crate) struct Config {
pub panic_handler: Option<PanicHandler>,
}

// Define type alias to avoid clippy::type_complexity.
type PanicHandler = Arc<dyn Fn(Box<dyn Any + Send>) + Send + Sync>;

/// Max number of workers that can be part of a pool. This is the most that can
Expand Down

0 comments on commit 2baee47

Please sign in to comment.