aboutsummaryrefslogtreecommitdiff
path: root/src/module/asynchronous.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/module/asynchronous.rs')
-rw-r--r--src/module/asynchronous.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/module/asynchronous.rs b/src/module/asynchronous.rs
index f94a0b6..2459518 100644
--- a/src/module/asynchronous.rs
+++ b/src/module/asynchronous.rs
@@ -15,12 +15,12 @@
// Copyright (C) 2022-2023 Fuwn <[email protected]>
// SPDX-License-Identifier: GPL-3.0-only
-use crate::{context::HookContext, Router};
+use crate::context::HookContext;
#[async_trait::async_trait]
pub trait AsyncModule: Send + Sync {
/// Called right after the module is attached.
- async fn on_attach(&mut self, _: &mut Router) {}
+ async fn on_attach(&mut self, _: &mut crate::Router) {}
/// Called before a route is mounted.
async fn on_pre_route(&mut self, _: HookContext) {}