Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
calm clippy for features
Browse files Browse the repository at this point in the history
martinjrobins committed Oct 19, 2024
1 parent 76736cd commit ebfce50
Showing 4 changed files with 7 additions and 4 deletions.
1 change: 1 addition & 0 deletions src/ode_solver/test_models/foodweb.rs
Original file line number Diff line number Diff line change
@@ -137,6 +137,7 @@ pub fn foodweb_diffsl_compile<M, CG, const NX: usize>(
diffsl_context.recompile(code.as_str()).unwrap();
}

#[allow(clippy::type_complexity)]
#[cfg(feature = "diffsl")]
pub fn foodweb_diffsl_problem<M, CG>(
diffsl_context: &crate::DiffSlContext<M, CG>,
1 change: 1 addition & 0 deletions src/ode_solver/test_models/heat2d.rs
Original file line number Diff line number Diff line change
@@ -90,6 +90,7 @@ pub fn heat2d_diffsl_compile<
context.recompile(code.as_str()).unwrap();
}

#[allow(clippy::type_complexity)]
#[cfg(feature = "diffsl")]
pub fn heat2d_diffsl_problem<
M: Matrix<T = f64> + 'static,
1 change: 1 addition & 0 deletions src/ode_solver/test_models/robertson.rs
Original file line number Diff line number Diff line change
@@ -50,6 +50,7 @@ pub fn robertson_diffsl_compile<
context.recompile(code).unwrap();
}

#[allow(clippy::type_complexity)]
#[cfg(feature = "diffsl")]
pub fn robertson_diffsl_problem<
M: Matrix<T = f64> + 'static,
8 changes: 4 additions & 4 deletions src/vector/sundials.rs
Original file line number Diff line number Diff line change
@@ -83,7 +83,7 @@ impl Drop for SundialsVector {
#[derive(Debug)]
pub struct SundialsVectorViewMut<'a>(&'a mut SundialsVector);

impl<'a> SundialsVectorViewMut<'a> {
impl SundialsVectorViewMut<'_> {
fn sundials_vector(&self) -> N_Vector {
self.0.sundials_vector()
}
@@ -95,7 +95,7 @@ impl<'a> SundialsVectorViewMut<'a> {
#[derive(Debug)]
pub struct SundialsVectorView<'a>(&'a SundialsVector);

impl<'a> SundialsVectorView<'a> {
impl SundialsVectorView<'_> {
fn sundials_vector(&self) -> N_Vector {
self.0.sundials_vector()
}
@@ -157,11 +157,11 @@ impl VectorCommon for SundialsVector {
type T = realtype;
}

impl<'a> VectorCommon for SundialsVectorView<'a> {
impl VectorCommon for SundialsVectorView<'_> {
type T = realtype;
}

impl<'a> VectorCommon for SundialsVectorViewMut<'a> {
impl VectorCommon for SundialsVectorViewMut<'_> {
type T = realtype;
}

0 comments on commit ebfce50

Please sign in to comment.