Skip to content

Commit

Permalink
Fixed clippy lints
Browse files Browse the repository at this point in the history
  • Loading branch information
stefan-k committed Oct 27, 2024
1 parent c2467d1 commit 2551ec2
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 2 deletions.
2 changes: 1 addition & 1 deletion crates/argmin-observer-slog/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ impl SlogLogger {

struct SlogKV<'a>(&'a KV);

impl<'a> slog::KV for SlogKV<'a> {
impl slog::KV for SlogKV<'_> {
fn serialize(&self, _record: &Record, serializer: &mut dyn Serializer) -> slog::Result {
for idx in self.0.kv.iter() {
serializer.emit_str(Key::from(idx.0.to_string()), &idx.1.to_string())?;
Expand Down
2 changes: 1 addition & 1 deletion crates/argmin/src/solver/newton/newton_cg.rs
Original file line number Diff line number Diff line change
Expand Up @@ -234,7 +234,7 @@ impl<'a, P, H> CGSubProblem<'a, P, H> {
}
}

impl<'a, P, H> Operator for CGSubProblem<'a, P, H>
impl<P, H> Operator for CGSubProblem<'_, P, H>
where
H: ArgminDot<P, P>,
{
Expand Down
3 changes: 3 additions & 0 deletions crates/finitediff/src/array/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@
// http://opensource.org/licenses/MIT>, at your option. This file may not be
// copied, modified, or distributed except according to those terms.

// Some types just are complex
#![allow(clippy::type_complexity)]

pub mod diff;
pub mod hessian;
pub mod jacobian;
Expand Down
3 changes: 3 additions & 0 deletions crates/finitediff/src/vec/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@
// http://opensource.org/licenses/MIT>, at your option. This file may not be
// copied, modified, or distributed except according to those terms.

// Some types just are complex
#![allow(clippy::type_complexity)]

pub mod diff;
pub mod hessian;
pub mod jacobian;
Expand Down

0 comments on commit 2551ec2

Please sign in to comment.