Remove duplicate binding in match

Co-authored-by: lzutao <taolzu@gmail.com>
This commit is contained in:
Joshua Nelson 2020-08-20 12:15:17 -04:00 committed by GitHub
parent d468a81a8a
commit f5d7848458
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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,