We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2642526 commit 9b9d4f0Copy full SHA for 9b9d4f0
src/librustdoc/passes/collect_intra_doc_links.rs
@@ -933,9 +933,9 @@ fn preprocess_link(
933
// certain link kinds cannot have their path be urls,
934
// so they should not be ignored, no matter how much they look like urls.
935
// e.g. [https://example.com/] is not a link to example.com.
936
- let can_be_url = ori_link.kind != LinkType::ShortcutUnknown &&
937
- ori_link.kind != LinkType::CollapsedUnknown &&
938
- ori_link.kind != LinkType::ReferenceUnknown;
+ let can_be_url = ori_link.kind != LinkType::ShortcutUnknown
+ && ori_link.kind != LinkType::CollapsedUnknown
+ && ori_link.kind != LinkType::ReferenceUnknown;
939
940
// [] is mostly likely not supposed to be a link
941
if ori_link.link.is_empty() {
0 commit comments