Add lifetime to use of Directive
This commit is contained in:
parent
f8a508038d
commit
ab404ba959
|
@ -152,7 +152,7 @@ impl<'a> Display for TrustedTypes<'a> {
|
|||
}
|
||||
|
||||
pub fn csp_middleware<'a, State: 'static + Clone + Send + Sync>(
|
||||
directives: &'a [Directive],
|
||||
directives: &'a [Directive<'a>],
|
||||
) -> impl Fn(Request<State>, Next<'a, State>) -> Pin<Box<dyn Future<Output = tide::Result> + Send + 'a>>
|
||||
{
|
||||
move |req: Request<State>, next: Next<'a, State>| {
|
||||
|
|
Loading…
Reference in New Issue