Fix all cargo doc warnings (#3684)

This commit is contained in:
A-Walrus 2024-03-16 11:25:40 +02:00 committed by GitHub
parent c8d4a4d2b6
commit e6f7cc126c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
4 changed files with 4 additions and 4 deletions

View File

@ -1080,7 +1080,7 @@ impl OutlineBuilder for WrappedPathBuilder {
} }
} }
/// Additional methods for [`Length`]. /// Additional methods for [`Abs`].
trait AbsExt { trait AbsExt {
/// Convert to a number of points as f32. /// Convert to a number of points as f32.
fn to_f32(self) -> f32; fn to_f32(self) -> f32;

View File

@ -1415,7 +1415,7 @@ fn reorder<'a>(line: &'a Line<'a>) -> (Vec<&Item<'a>>, bool) {
/// How much a character should hang into the end margin. /// How much a character should hang into the end margin.
/// ///
/// For more discussion, see: /// For more discussion, see:
/// https://recoveringphysicist.com/21/ /// <https://recoveringphysicist.com/21/>
fn overhang(c: char) -> f64 { fn overhang(c: char) -> f64 {
match c { match c {
// Dashes. // Dashes.

View File

@ -50,7 +50,7 @@ impl LayoutMath for Packed<RootElem> {
/// Layout a root. /// Layout a root.
/// ///
/// TeXbook page 443, page 360 /// TeXbook page 443, page 360
/// See also: https://www.w3.org/TR/mathml-core/#radicals-msqrt-mroot /// See also: <https://www.w3.org/TR/mathml-core/#radicals-msqrt-mroot>
fn layout( fn layout(
ctx: &mut MathContext, ctx: &mut MathContext,
styles: StyleChain, styles: StyleChain,

View File

@ -32,7 +32,7 @@ pub type Luma = palette::luma::Lumaa<encoding::Srgb, f32>;
/// This is a minimal CMYK profile that only contains the necessary information /// This is a minimal CMYK profile that only contains the necessary information
/// to convert from CMYK to RGB. It is based on the CGATS TR 001-1995 /// to convert from CMYK to RGB. It is based on the CGATS TR 001-1995
/// specification. See /// specification. See
/// https://github.com/saucecontrol/Compact-ICC-Profiles#cmyk. /// <https://github.com/saucecontrol/Compact-ICC-Profiles#cmyk>.
static CMYK_TO_XYZ: Lazy<Box<Profile>> = static CMYK_TO_XYZ: Lazy<Box<Profile>> =
Lazy::new(|| Profile::new_from_slice(typst_assets::icc::CMYK_TO_XYZ, false).unwrap()); Lazy::new(|| Profile::new_from_slice(typst_assets::icc::CMYK_TO_XYZ, false).unwrap());