aboutsummaryrefslogtreecommitdiff
path: root/src/module/sync.rs
diff options
context:
space:
mode:
authorFuwn <[email protected]>2023-05-05 00:31:39 +0000
committerFuwn <[email protected]>2023-05-05 00:31:39 +0000
commit2840379d934fc25b026d4cc999230935cb56b3fe (patch)
tree2ffe4537cf9e5c991e702e2528f56bdd4a5a16ac /src/module/sync.rs
parentdocs(readme): rossweisse info (diff)
downloadwindmark-2840379d934fc25b026d4cc999230935cb56b3fe.tar.xz
windmark-2840379d934fc25b026d4cc999230935cb56b3fe.zip
refactor: simplify imports
Diffstat (limited to 'src/module/sync.rs')
-rw-r--r--src/module/sync.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/module/sync.rs b/src/module/sync.rs
index 8c181be..4b6de4d 100644
--- a/src/module/sync.rs
+++ b/src/module/sync.rs
@@ -15,11 +15,11 @@
// Copyright (C) 2022-2023 Fuwn <[email protected]>
// SPDX-License-Identifier: GPL-3.0-only
-use crate::{context::HookContext, Router};
+use crate::context::HookContext;
pub trait Module {
/// Called right after the module is attached.
- fn on_attach(&mut self, _: &mut Router) {}
+ fn on_attach(&mut self, _: &mut crate::Router) {}
/// Called before a route is mounted.
fn on_pre_route(&mut self, _: HookContext) {}