Skip to content

Commit 744b241

Browse files
committed
fix it in librustdoc
1 parent f89f190 commit 744b241

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/librustdoc/html/format.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,7 @@ pub(crate) fn print_generic_bounds<'a, 'tcx: 'a>(
167167
display_fn(move |f| {
168168
let mut bounds_dup = FxHashSet::default();
169169

170-
for (i, bound) in bounds.iter().filter(|b| bounds_dup.insert(b.clone())).enumerate() {
170+
for (i, bound) in bounds.iter().filter(|b| bounds_dup.insert(*b)).enumerate() {
171171
if i > 0 {
172172
f.write_str(" + ")?;
173173
}

0 commit comments

Comments
 (0)