mirror of
https://github.com/typst/typst
synced 2025-05-14 04:56:26 +08:00
Fix all cargo doc warnings (#3684)
This commit is contained in:
parent
c8d4a4d2b6
commit
e6f7cc126c
@ -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;
|
||||||
|
@ -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.
|
||||||
|
@ -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,
|
||||||
|
@ -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());
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user