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