Fix clippy::let_and_return

This commit is contained in:
Luis Moreno
2020-11-08 23:26:22 -04:00
parent dd2864abe7
commit 0c35adf76a
2 changed files with 1 additions and 3 deletions
-1
View File
@@ -73,7 +73,6 @@
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::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
+1 -2
View File
@@ -29,8 +29,7 @@ impl<T: RealNumber> BaseVector<T> for Vec<T> {
} }
fn to_vec(&self) -> Vec<T> { fn to_vec(&self) -> Vec<T> {
let v = self.clone(); self.clone()
v
} }
fn zeros(len: usize) -> Self { fn zeros(len: usize) -> Self {