Skip to content

Commit dd2864a

Browse files
committed
Fix clippy::extra_unused_lifetimes
1 parent b780e0c commit dd2864a

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

src/lib.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -68,14 +68,13 @@
6868
clippy::needless_range_loop,
6969
clippy::ptr_arg,
7070
clippy::len_without_is_empty,
71-
clippy::extra_unused_lifetimes,
7271
clippy::map_entry,
7372
clippy::comparison_chain,
7473
clippy::type_complexity,
7574
clippy::needless_lifetimes,
7675
clippy::too_many_arguments,
7776
clippy::let_and_return,
78-
clippy::many_single_char_names,
77+
clippy::many_single_char_names
7978
)]
8079
/// Various algorithms and helper methods that are used elsewhere in SmartCore
8180
pub mod algorithm;

src/optimization/line_search.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ use crate::optimization::FunctionOrder;
22
use num_traits::Float;
33

44
pub trait LineSearchMethod<T: Float> {
5-
fn search<'a>(
5+
fn search(
66
&self,
77
f: &(dyn Fn(T) -> T),
88
df: &(dyn Fn(T) -> T),

0 commit comments

Comments
 (0)