diff options
author | Martin Robinson <mrobinson@igalia.com> | 2024-09-08 08:04:19 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-09-08 15:04:19 +0000 |
commit | e70507ca403c9475a92b3c1b8230fad08c9c7ab2 (patch) | |
tree | e13a67eacbaa5bbc664f026eb1ab5c1473b66668 /components/script/dom/htmlcollection.rs | |
parent | f6ae05007751968f90a702b15c8b5083453ad8c7 (diff) | |
download | servo-e70507ca403c9475a92b3c1b8230fad08c9c7ab2.tar.gz servo-e70507ca403c9475a92b3c1b8230fad08c9c7ab2.zip |
tidy: Fix rustdoc warnings and add a tidy check for a common URL issue (#33366)
This change fixes all rustdoc errors and also adds a tidy check for a
very common rustdoc URL issue. Eventually rustdoc warnings should likely
cause the build to fail, but this catches those issues sooner in order
to not waste so much developer time.
Signed-off-by: Martin Robinson <mrobinson@igalia.com>
Diffstat (limited to 'components/script/dom/htmlcollection.rs')
-rw-r--r-- | components/script/dom/htmlcollection.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/components/script/dom/htmlcollection.rs b/components/script/dom/htmlcollection.rs index 24e71f482e5..f48715f158a 100644 --- a/components/script/dom/htmlcollection.rs +++ b/components/script/dom/htmlcollection.rs @@ -25,9 +25,9 @@ pub trait CollectionFilter: JSTraceable { fn filter<'a>(&self, elem: &'a Element, root: &'a Node) -> bool; } -/// An optional u32, using u32::MAX to represent None. -/// It would be nicer just to use Option<u32> for this, but that would produce word -/// alignment issues since Option<u32> uses 33 bits. +/// An optional `u32`, using `u32::MAX` to represent None. It would be nicer +/// just to use `Option<u32>`` for this, but that would produce word alignment +/// issues since `Option<u32>`` uses 33 bits. #[derive(Clone, Copy, JSTraceable, MallocSizeOf)] struct OptionU32 { bits: u32, |