mirror of
https://github.com/rust-lang/rust.git
synced 2026-04-27 18:57:42 +03:00
Update src/librustdoc/clean/types.rs
Co-authored-by: Michael Howell <michael@notriddle.com>
This commit is contained in:
@@ -204,7 +204,7 @@ fn to_remote(url: impl ToString) -> ExternalLocation {
|
||||
url.push('/');
|
||||
}
|
||||
let is_absolute = url.starts_with('/')
|
||||
|| url.split_once("://").is_some_and(|(scheme, _)| {
|
||||
|| url.split_once(':').is_some_and(|(scheme, _)| {
|
||||
scheme.bytes().next().is_some_and(|b| b.is_ascii_alphabetic())
|
||||
&& scheme
|
||||
.bytes()
|
||||
|
||||
Reference in New Issue
Block a user