Fix clippy::extra_unused_lifetimes
This commit is contained in:
+1
-2
@@ -68,14 +68,13 @@
|
||||
clippy::needless_range_loop,
|
||||
clippy::ptr_arg,
|
||||
clippy::len_without_is_empty,
|
||||
clippy::extra_unused_lifetimes,
|
||||
clippy::map_entry,
|
||||
clippy::comparison_chain,
|
||||
clippy::type_complexity,
|
||||
clippy::needless_lifetimes,
|
||||
clippy::too_many_arguments,
|
||||
clippy::let_and_return,
|
||||
clippy::many_single_char_names,
|
||||
clippy::many_single_char_names
|
||||
)]
|
||||
/// Various algorithms and helper methods that are used elsewhere in SmartCore
|
||||
pub mod algorithm;
|
||||
|
||||
@@ -2,7 +2,7 @@ use crate::optimization::FunctionOrder;
|
||||
use num_traits::Float;
|
||||
|
||||
pub trait LineSearchMethod<T: Float> {
|
||||
fn search<'a>(
|
||||
fn search(
|
||||
&self,
|
||||
f: &(dyn Fn(T) -> T),
|
||||
df: &(dyn Fn(T) -> T),
|
||||
|
||||
Reference in New Issue
Block a user