mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-30 10:45:18 +00:00
Remove unnecessary scope
This commit is contained in:
parent
65f4f39dd8
commit
1e15c2fde5
@ -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>| {
|
||||
|
Loading…
Reference in New Issue
Block a user