Skip to content

Commit b482acd

Browse files
authored
Fix clippy warnings (#139)
Co-authored-by: Luis Moreno <morenol@users.noreply.github.com>
1 parent b4a807e commit b482acd

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

src/algorithm/sort/heap_select.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ pub struct HeapSelection<T: PartialOrd + Debug> {
1212
heap: Vec<T>,
1313
}
1414

15-
impl<'a, T: PartialOrd + Debug> HeapSelection<T> {
15+
impl<T: PartialOrd + Debug> HeapSelection<T> {
1616
pub fn with_capacity(k: usize) -> HeapSelection<T> {
1717
HeapSelection {
1818
k,

src/linear/lasso_optimizer.rs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -211,9 +211,7 @@ impl<T: RealNumber, M: Matrix<T>> InteriorPointOptimizer<T, M> {
211211
}
212212
}
213213

214-
impl<'a, T: RealNumber, M: Matrix<T>> BiconjugateGradientSolver<T, M>
215-
for InteriorPointOptimizer<T, M>
216-
{
214+
impl<T: RealNumber, M: Matrix<T>> BiconjugateGradientSolver<T, M> for InteriorPointOptimizer<T, M> {
217215
fn solve_preconditioner(&self, a: &M, b: &M, x: &mut M) {
218216
let (_, p) = a.shape();
219217

0 commit comments

Comments
 (0)