From 1e15c2fde5dd456d879b90259c414a73d5804550 Mon Sep 17 00:00:00 2001 From: Joshua Nelson Date: Sun, 20 Dec 2020 14:33:58 -0500 Subject: [PATCH] Remove unnecessary scope --- src/librustdoc/html/markdown.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/librustdoc/html/markdown.rs b/src/librustdoc/html/markdown.rs index 7600b63bb8859..e4a0d80674fbc 100644 --- a/src/librustdoc/html/markdown.rs +++ b/src/librustdoc/html/markdown.rs @@ -1160,6 +1160,8 @@ crate fn markdown_links(md: &str) -> Vec<(String, Range)> { } 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| {