Fix clippy warnings (#139)

Co-authored-by: Luis Moreno <morenol@users.noreply.github.com>
This commit is contained in:
morenol
2022-07-13 21:06:05 -04:00
parent ea39024fd2
commit 98e3465e7b
2 changed files with 2 additions and 4 deletions
+1 -1
View File
@@ -12,7 +12,7 @@ pub struct HeapSelection<T: PartialOrd + Debug> {
heap: Vec<T>, heap: Vec<T>,
} }
impl<'a, T: PartialOrd + Debug> HeapSelection<T> { impl<T: PartialOrd + Debug> HeapSelection<T> {
pub fn with_capacity(k: usize) -> HeapSelection<T> { pub fn with_capacity(k: usize) -> HeapSelection<T> {
HeapSelection { HeapSelection {
k, k,
+1 -3
View File
@@ -211,9 +211,7 @@ impl<T: RealNumber, M: Matrix<T>> InteriorPointOptimizer<T, M> {
} }
} }
impl<'a, T: RealNumber, M: Matrix<T>> BiconjugateGradientSolver<T, M> impl<T: RealNumber, M: Matrix<T>> BiconjugateGradientSolver<T, M> for InteriorPointOptimizer<T, M> {
for InteriorPointOptimizer<T, M>
{
fn solve_preconditioner(&self, a: &M, b: &M, x: &mut M) { fn solve_preconditioner(&self, a: &M, b: &M, x: &mut M) {
let (_, p) = a.shape(); let (_, p) = a.shape();