Skip to content

Commit

Permalink
'fix error's
Browse files Browse the repository at this point in the history
  • Loading branch information
lsh committed Aug 17, 2022
1 parent b9483ab commit 0eb1f5c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion nalgebra-sparse/src/coo.rs
Original file line number Diff line number Diff line change
Expand Up @@ -212,7 +212,7 @@ impl<T> CooMatrix<T> {
}

/// Clear all triplets from the matrix.
pub fn clear_triplets(&mut self, i: usize, j: usize, v: T)
pub fn clear_triplets(&mut self)
where
T: PartialEq,
{
Expand Down
2 changes: 1 addition & 1 deletion nalgebra-sparse/tests/unit_tests/coo.rs
Original file line number Diff line number Diff line change
Expand Up @@ -238,7 +238,7 @@ fn coo_clear_triplets_valid_entries() {
vec![(0, 0, &1), (0, 0, &2), (2, 2, &3)]
);
coo.clear_triplets();
assert_eq(coo.triplet_iter.collect::<Vec<_>>(), vec![]);
assert_eq!(coo.triplet_iter().collect::<Vec<_>>(), vec![]);
// making sure everyhting works after clearing
coo.push(0, 0, 1);
coo.push(0, 0, 2);
Expand Down

0 comments on commit 0eb1f5c

Please sign in to comment.