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 cee9e0a commit a20414fCopy full SHA for a20414f
src/librustdoc/passes/collect_intra_doc_links.rs
@@ -934,9 +934,9 @@ fn preprocess_link(
934
// certain link kinds cannot have their path be urls,
935
// so they should not be ignored, no matter how much they look like urls.
936
// e.g. [https://example.com/] is not a link to example.com.
937
- let can_be_url = ori_link.kind != LinkType::ShortcutUnknown &&
938
- ori_link.kind != LinkType::CollapsedUnknown &&
939
- ori_link.kind != LinkType::ReferenceUnknown;
+ let can_be_url = ori_link.kind != LinkType::ShortcutUnknown
+ && ori_link.kind != LinkType::CollapsedUnknown
+ && ori_link.kind != LinkType::ReferenceUnknown;
940
941
// [] is mostly likely not supposed to be a link
942
if ori_link.link.is_empty() {
0 commit comments