We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f89f190 commit 744b241Copy full SHA for 744b241
src/librustdoc/html/format.rs
@@ -167,7 +167,7 @@ pub(crate) fn print_generic_bounds<'a, 'tcx: 'a>(
167
display_fn(move |f| {
168
let mut bounds_dup = FxHashSet::default();
169
170
- 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() {
171
if i > 0 {
172
f.write_str(" + ")?;
173
}
0 commit comments