Skip to content

Commit 1e15c2f

Browse files
committed
Remove unnecessary scope
1 parent 65f4f39 commit 1e15c2f

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/librustdoc/html/markdown.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1160,6 +1160,8 @@ crate fn markdown_links(md: &str) -> Vec<(String, Range<usize>)> {
11601160
}
11611161

11621162
let mut links = vec![];
1163+
// Used to avoid mutable borrow issues in the `push` closure
1164+
// Probably it would be more efficient to use a `RefCell` but it doesn't seem worth the churn.
11631165
let mut shortcut_links = vec![];
11641166

11651167
let span_for_link = |link: &str, span: Range<usize>| {

0 commit comments

Comments
 (0)