Skip to content

Commit 0c35adf

Browse files
committed
Fix clippy::let_and_return
1 parent dd2864a commit 0c35adf

File tree

2 files changed

+1
-3
lines changed

2 files changed

+1
-3
lines changed

src/lib.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,6 @@
7373
clippy::type_complexity,
7474
clippy::needless_lifetimes,
7575
clippy::too_many_arguments,
76-
clippy::let_and_return,
7776
clippy::many_single_char_names
7877
)]
7978
/// Various algorithms and helper methods that are used elsewhere in SmartCore

src/linalg/naive/dense_matrix.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,7 @@ impl<T: RealNumber> BaseVector<T> for Vec<T> {
2929
}
3030

3131
fn to_vec(&self) -> Vec<T> {
32-
let v = self.clone();
33-
v
32+
self.clone()
3433
}
3534

3635
fn zeros(len: usize) -> Self {

0 commit comments

Comments
 (0)