Add inline hints to Scale::uniform, GlyphId::into_glyph_id

parent e4fb8016
Pipeline #1093 passed with stages
in 13 minutes and 36 seconds
......@@ -397,6 +397,7 @@ pub struct Scale {
impl Scale {
/// Uniform scaling, equivalent to `Scale { x: s, y: s }`.
#[inline]
pub fn uniform(s: f32) -> Scale {
Scale { x: s, y: s }
}
......@@ -423,6 +424,7 @@ impl IntoGlyphId for Codepoint {
}
}
impl IntoGlyphId for GlyphId {
#[inline]
fn into_glyph_id(self, _font: &Font) -> GlyphId {
self
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment