aboutsummaryrefslogtreecommitdiff
path: root/src/context
diff options
context:
space:
mode:
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>>,