Fix clippy::extra_unused_lifetimes

This commit is contained in:
Luis Moreno
2020-11-08 23:23:55 -04:00
parent b780e0c289
commit dd2864abe7
2 changed files with 2 additions and 3 deletions
+1 -2
View File
@@ -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;
+1 -1
View File
@@ -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),