aboutsummaryrefslogtreecommitdiff
path: root/src/context
diff options
context:
space:
mode:
authorFuwn <[email protected]>2023-04-06 07:31:09 +0000
committerFuwn <[email protected]>2023-04-06 07:31:09 +0000
commit71bbd199aa67811c9d7a15dbf1b66c5e43b76d29 (patch)
tree2f3c086455ebe37f187f1ccbc8262c1811ae6ad2 /src/context
parentfix(context): fix async sharing (diff)
downloadwindmark-71bbd199aa67811c9d7a15dbf1b66c5e43b76d29.tar.xz
windmark-71bbd199aa67811c9d7a15dbf1b66c5e43b76d29.zip
refactor(router): simplify context creation
Diffstat (limited to 'src/context')
-rw-r--r--src/context/error.rs1
-rw-r--r--src/context/hook.rs1
2 files changed, 2 insertions, 0 deletions
diff --git a/src/context/error.rs b/src/context/error.rs
index a9a4b85..7e02b1a 100644
--- a/src/context/error.rs
+++ b/src/context/error.rs
@@ -20,6 +20,7 @@ use openssl::x509::X509;
use url::Url;
#[allow(clippy::module_name_repetitions)]
+#[derive(Clone)]
pub struct ErrorContext {
pub url: Url,
pub certificate: Option<X509>,
diff --git a/src/context/hook.rs b/src/context/hook.rs
index 736696f..94a6908 100644
--- a/src/context/hook.rs
+++ b/src/context/hook.rs
@@ -21,6 +21,7 @@ use openssl::x509::X509;
use url::Url;
#[allow(clippy::module_name_repetitions)]
+#[derive(Clone)]
pub struct HookContext<'a> {
pub url: Url,
pub params: Option<Params<'a, 'a>>,