Skip to content

Commit 61f1692

Browse files
Remove needless Rc<RefCell<...>>
1 parent 5f58834 commit 61f1692

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/librustdoc/html/render.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3771,12 +3771,12 @@ fn sidebar_assoc_items(it: &clean::Item) -> String {
37713771
let mut used_links = FxHashSet::default();
37723772

37733773
{
3774-
let used_links_bor = Rc::new(RefCell::new(&mut used_links));
3774+
let used_links_bor = &mut used_links;
37753775
let mut ret = v.iter()
37763776
.filter(|i| i.inner_impl().trait_.is_none())
37773777
.flat_map(move |i| get_methods(i.inner_impl(),
37783778
false,
3779-
&mut used_links_bor.borrow_mut(), false))
3779+
used_links_bor, false))
37803780
.collect::<Vec<_>>();
37813781
// We want links' order to be reproducible so we don't use unstable sort.
37823782
ret.sort();

0 commit comments

Comments
 (0)