diff options
| author | Jorge Aparicio <japaricious@gmail.com> | 2014-12-01 16:47:48 -0500 |
|---|---|---|
| committer | Jorge Aparicio <japaricious@gmail.com> | 2014-12-13 20:15:39 -0500 |
| commit | fb1d4f1b1390654cdbe193882c9ed63a34dd720b (patch) | |
| tree | 46c8dbe3a741c698d348e632d499d2ba5a776121 | |
| parent | eb71976137ba1528c0cfca2fdbdb13dcc712809c (diff) | |
| download | rust-fb1d4f1b1390654cdbe193882c9ed63a34dd720b.tar.gz rust-fb1d4f1b1390654cdbe193882c9ed63a34dd720b.zip | |
librustdoc: convert `Counts` binops to by value
| -rw-r--r-- | src/librustdoc/stability_summary.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/librustdoc/stability_summary.rs b/src/librustdoc/stability_summary.rs index 881270afe14..f92cdaf46b6 100644 --- a/src/librustdoc/stability_summary.rs +++ b/src/librustdoc/stability_summary.rs @@ -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, |
