mirror of
https://github.com/servo/servo.git
synced 2025-08-03 20:50:07 +01:00
rustdoc: Fix many rustdoc errors (#31147)
This fixes many rustdoc errors that occur due to raw URLs in rustdoc comments as well as unescaped Rust code that should be in backticks.
This commit is contained in:
parent
d7de206dbd
commit
5c1723c983
185 changed files with 939 additions and 942 deletions
|
@ -137,7 +137,7 @@ pub enum CACertificates {
|
|||
///
|
||||
/// FIXME: The `ignore_certificate_errors` argument ignores all certificate errors. This
|
||||
/// is used when running the WPT tests, because rustls currently rejects the WPT certificiate.
|
||||
/// See https://github.com/servo/servo/issues/30080
|
||||
/// See <https://github.com/servo/servo/issues/30080>
|
||||
pub fn create_tls_config(
|
||||
ca_certificates: CACertificates,
|
||||
ignore_certificate_errors: bool,
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
* file, You can obtain one at https://mozilla.org/MPL/2.0/. */
|
||||
|
||||
//! Implementation of cookie creation and matching as specified by
|
||||
//! http://tools.ietf.org/html/rfc6265
|
||||
//! <http://tools.ietf.org/html/rfc6265>
|
||||
|
||||
use std::borrow::ToOwned;
|
||||
use std::net::{Ipv4Addr, Ipv6Addr};
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
* file, You can obtain one at https://mozilla.org/MPL/2.0/. */
|
||||
|
||||
//! Implementation of cookie storage as specified in
|
||||
//! http://tools.ietf.org/html/rfc6265
|
||||
//! <http://tools.ietf.org/html/rfc6265>
|
||||
|
||||
use std::cmp::Ordering;
|
||||
use std::collections::hash_map::Entry;
|
||||
|
|
|
@ -164,7 +164,7 @@ pub async fn fetch_with_cors_cache(
|
|||
main_fetch(request, cache, false, false, target, &mut None, &context).await;
|
||||
}
|
||||
|
||||
/// https://www.w3.org/TR/CSP/#should-block-request
|
||||
/// <https://www.w3.org/TR/CSP/#should-block-request>
|
||||
pub fn should_request_be_blocked_by_csp(request: &Request) -> csp::CheckResult {
|
||||
let origin = match &request.origin {
|
||||
Origin::Client => return csp::CheckResult::Allowed,
|
||||
|
|
|
@ -144,7 +144,7 @@ impl HstsList {
|
|||
}
|
||||
}
|
||||
|
||||
/// Step 2.9 of https://fetch.spec.whatwg.org/#concept-main-fetch.
|
||||
/// Step 2.9 of <https://fetch.spec.whatwg.org/#concept-main-fetch>.
|
||||
pub fn apply_hsts_rules(&self, url: &mut ServoUrl) {
|
||||
if url.scheme() != "http" && url.scheme() != "ws" {
|
||||
return;
|
||||
|
|
|
@ -223,7 +223,7 @@ fn strict_origin_when_cross_origin(
|
|||
strip_url_for_use_as_referrer(referrer_url, true)
|
||||
}
|
||||
|
||||
/// https://html.spec.whatwg.org/multipage/#schemelessly-same-site
|
||||
/// <https://html.spec.whatwg.org/multipage/#schemelessly-same-site>
|
||||
fn is_schemelessy_same_site(site_a: &ImmutableOrigin, site_b: &ImmutableOrigin) -> bool {
|
||||
// Step 1
|
||||
if !site_a.is_tuple() && !site_b.is_tuple() && site_a == site_b {
|
||||
|
|
|
@ -94,7 +94,7 @@ fn set_webrender_image_key(webrender_api: &WebrenderIpcSender, image: &mut Image
|
|||
// Aux structs and enums.
|
||||
// ======================================================================
|
||||
|
||||
/// https://html.spec.whatwg.org/multipage/#list-of-available-images
|
||||
/// <https://html.spec.whatwg.org/multipage/#list-of-available-images>
|
||||
type ImageKey = (ServoUrl, ImmutableOrigin, Option<CorsSettings>);
|
||||
|
||||
// Represents all the currently pending loads/decodings. For
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue