Fix clippy::let_and_return
This commit is contained in:
@@ -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
|
||||||
|
|||||||
@@ -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 {
|
||||||
|
|||||||
Reference in New Issue
Block a user