Add lifetime to use of Directive

This commit is contained in:
Michael Pfaff 2021-01-20 22:04:26 -05:00
parent f8a508038d
commit ab404ba959
Signed by: michael
GPG Key ID: E53B118B12B5C7F9
1 changed files with 1 additions and 1 deletions

View File

@ -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>| {