Skip to content

Commit

Permalink
Clippy fixes (#195)
Browse files Browse the repository at this point in the history
Signed-off-by: lloydmeta <lloydmeta@gmail.com>
  • Loading branch information
lloydmeta committed Sep 15, 2021
1 parent 8d82a7b commit 246741f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/monoid.rs
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ where
T: Monoid + Semigroup + Clone,
{
xs.iter()
.fold(<T as Monoid>::empty(), |acc, next| acc.combine(&next))
.fold(<T as Monoid>::empty(), |acc, next| acc.combine(next))
}

impl<T> Monoid for Option<T>
Expand Down
2 changes: 1 addition & 1 deletion src/semigroup.rs
Original file line number Diff line number Diff line change
Expand Up @@ -247,7 +247,7 @@ where
match h.entry(k_clone) {
Entry::Occupied(o) => {
let existing = o.into_mut();
let comb = existing.combine(&v);
let comb = existing.combine(v);
*existing = comb;
}
Entry::Vacant(o) => {
Expand Down

0 comments on commit 246741f

Please sign in to comment.