From dd6c929cc6baaea4a385c8c2cc5dc5f3236e8c06 Mon Sep 17 00:00:00 2001 From: Aarya Khandelwal <119049564+Aaryakhandelwal@users.noreply.github.com> Date: Fri, 8 Mar 2024 17:58:06 +0530 Subject: [PATCH] Fix rustdoc errors in `components/shared` (#31582) * Fixed error in documentation in components>shared>embedder>lib.rs * fixed documentation warning in compoenents>shared>net>request.rs * Fixed the documentation (URL issue) in components>shared>script>lib.rs --- components/shared/embedder/lib.rs | 2 +- components/shared/net/request.rs | 2 +- components/shared/script/lib.rs | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/components/shared/embedder/lib.rs b/components/shared/embedder/lib.rs index a03993359c4..da6eca45291 100644 --- a/components/shared/embedder/lib.rs +++ b/components/shared/embedder/lib.rs @@ -176,7 +176,7 @@ pub enum EmbedderMsg { SetCursor(Cursor), /// A favicon was detected NewFavicon(ServoUrl), - /// tag finished parsing + /// `` tag finished parsing HeadParsed, /// The history state has changed. HistoryChanged(Vec, usize), diff --git a/components/shared/net/request.rs b/components/shared/net/request.rs index b1aa5fd0f04..f3fb7362c58 100644 --- a/components/shared/net/request.rs +++ b/components/shared/net/request.rs @@ -186,7 +186,7 @@ impl RequestBody { } } - /// Step 12 of https://fetch.spec.whatwg.org/#concept-http-redirect-fetch + /// Step 12 of pub fn extract_source(&mut self) { match self.source { BodySource::Null => panic!("Null sources should never be re-directed."), diff --git a/components/shared/script/lib.rs b/components/shared/script/lib.rs index f39089cf3a0..8dd065a883f 100644 --- a/components/shared/script/lib.rs +++ b/components/shared/script/lib.rs @@ -1350,6 +1350,6 @@ pub enum GamepadUpdateType { /// Axis(usize, f64), /// Button index and input value - /// Button(usize, f64), }