Skip to content

Commit

Permalink
Remove unnecessary scope
Browse files Browse the repository at this point in the history
  • Loading branch information
jyn514 committed Dec 20, 2020
1 parent 65f4f39 commit 1e15c2f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/librustdoc/html/markdown.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1160,6 +1160,8 @@ crate fn markdown_links(md: &str) -> Vec<(String, Range<usize>)> {
}

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

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

0 comments on commit 1e15c2f

Please sign in to comment.