Skip to content

Commit

Permalink
Remove duplicate binding in match
Browse files Browse the repository at this point in the history
Co-authored-by: lzutao <taolzu@gmail.com>
  • Loading branch information
jyn514 and tesuji authored Aug 20, 2020
1 parent d468a81 commit f5d7848
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/librustdoc/passes/collect_intra_doc_links.rs
Original file line number Diff line number Diff line change
Expand Up @@ -636,7 +636,7 @@ impl<'a, 'tcx> DocFolder for LinkCollector<'a, 'tcx> {
}

match disambiguator.map(Disambiguator::ns) {
Some(ns @ ValueNS | ns @ TypeNS) => {
Some(ns @ (ValueNS | TypeNS)) => {
match self.resolve(
path_str,
disambiguator,
Expand Down

0 comments on commit f5d7848

Please sign in to comment.