librustdoc: convert Counts
binops to by value
This commit is contained in:
parent
eb71976137
commit
fb1d4f1b13
1 changed files with 1 additions and 1 deletions
|
@ -42,7 +42,7 @@ pub struct Counts {
|
|||
impl Copy for Counts {}
|
||||
|
||||
impl Add<Counts, Counts> for Counts {
|
||||
fn add(&self, other: &Counts) -> Counts {
|
||||
fn add(self, other: Counts) -> Counts {
|
||||
Counts {
|
||||
deprecated: self.deprecated + other.deprecated,
|
||||
experimental: self.experimental + other.experimental,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue