Skip to content

Commit

Permalink
Merge pull request #248 from H1rono/hide-handler-new
Browse files Browse the repository at this point in the history
💥 Hide `Handler::new`
  • Loading branch information
H1rono authored Dec 8, 2024
2 parents e68c620 + 3f5d66a commit 7b66625
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/handler.rs
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,7 @@ macro_rules! all_event_service {
all_events! {all_event_service}

impl<Service> Handler<Service> {
// TODO: これpubにしたい
/// 新しくイベントハンドラを作成します。`service`は以下の条件を満たす必要があります。
///
/// - <code>[Service]<[Event]></code>, [`Clone`]を実装している
Expand All @@ -138,7 +139,7 @@ impl<Service> Handler<Service> {
/// [Error]: std::error::Error
/// [Send]: std::marker::Send
/// [Sync]: std::marker::Sync
pub fn new(parser: crate::RequestParser, service: Service) -> Self {
fn new(parser: crate::RequestParser, service: Service) -> Self {
Self { service, parser }
}

Expand Down

0 comments on commit 7b66625

Please sign in to comment.