diff --git a/src/jacobian/mod.rs b/src/jacobian/mod.rs index 06cc697..0142fb6 100644 --- a/src/jacobian/mod.rs +++ b/src/jacobian/mod.rs @@ -170,7 +170,7 @@ mod tests { triplets: &'a [(usize, usize, M::T)], nrows: usize, ncols: usize, - ) -> impl NonLinearOp + '_ { + ) -> impl NonLinearOp + 'a { let nstates = ncols; let nout = nrows; let f = move |x: &M::V, y: &mut M::V| { @@ -201,7 +201,7 @@ mod tests { triplets: &'a [(usize, usize, M::T)], nrows: usize, ncols: usize, - ) -> impl LinearOp + '_ { + ) -> impl LinearOp + 'a { let nstates = ncols; let nout = nrows; let f = move |x: &M::V, y: &mut M::V| {