We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Handler
WrappedHandler
1 parent b5af770 commit 1b087daCopy full SHA for 1b087da
src/lib.rs
@@ -22,6 +22,12 @@ pub struct WrappedHandler {
22
handler: Box<dyn Handler>,
23
}
24
25
+impl conduit::Handler for WrappedHandler {
26
+ fn call(&self, request: &mut dyn RequestExt) -> HandlerResult {
27
+ self.handler.call(request)
28
+ }
29
+}
30
+
31
#[derive(Debug)]
32
pub struct RouterError(String);
33
@@ -104,7 +110,7 @@ impl conduit::Handler for RouteBuilder {
104
110
extensions.insert(m.params.clone());
105
111
106
112
107
- (*m.handler.handler).call(request)
113
+ (*m.handler).call(request)
108
114
109
115
116
0 commit comments