diff options
| author | Dylan DPC <99973273+Dylan-DPC@users.noreply.github.com> | 2023-05-02 11:44:52 +0530 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-05-02 11:44:52 +0530 |
| commit | 40c4ed49941ec3dbfb399336a293f348f23958df (patch) | |
| tree | 5ca01e9a01b760ed0a93e8b8c4bf067ba94de4c7 /src/librustdoc | |
| parent | f47a63ca3dac0467fa42a950a7232e97989fc8b8 (diff) | |
| parent | 475378f0c6fb6261fd73b54a902a2d7d55ee47cb (diff) | |
| download | rust-40c4ed49941ec3dbfb399336a293f348f23958df.tar.gz rust-40c4ed49941ec3dbfb399336a293f348f23958df.zip | |
Rollup merge of #110955 - fee1-dead-contrib:sus-operation, r=compiler-errors
uplift `clippy::clone_double_ref` as `suspicious_double_ref_op` Split from #109842. r? ``@compiler-errors``
Diffstat (limited to 'src/librustdoc')
| -rw-r--r-- | src/librustdoc/html/format.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/librustdoc/html/format.rs b/src/librustdoc/html/format.rs index 1b445b8981e..297120da284 100644 --- a/src/librustdoc/html/format.rs +++ b/src/librustdoc/html/format.rs @@ -167,7 +167,7 @@ pub(crate) fn print_generic_bounds<'a, 'tcx: 'a>( display_fn(move |f| { let mut bounds_dup = FxHashSet::default(); - for (i, bound) in bounds.iter().filter(|b| bounds_dup.insert(b.clone())).enumerate() { + for (i, bound) in bounds.iter().filter(|b| bounds_dup.insert(*b)).enumerate() { if i > 0 { f.write_str(" + ")?; } |
