summaryrefslogtreecommitdiff
path: root/crates/typst-svg
diff options
context:
space:
mode:
authorLaurenz <laurmaedje@gmail.com>2024-06-24 22:11:11 +0200
committerGitHub <noreply@github.com>2024-06-24 20:11:11 +0000
commit45366c0112ac7a6197cee35f1e180c6a00923e05 (patch)
tree8ce9679593c7ace2ce671cd67fec67745955f529 /crates/typst-svg
parente6b531487042aab25fa72c886decf526672a4631 (diff)
Bump Rust in CI (#4445)
Diffstat (limited to 'crates/typst-svg')
-rw-r--r--crates/typst-svg/src/text.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/crates/typst-svg/src/text.rs b/crates/typst-svg/src/text.rs
index dc5442f9..04b75123 100644
--- a/crates/typst-svg/src/text.rs
+++ b/crates/typst-svg/src/text.rs
@@ -238,7 +238,7 @@ fn convert_outline_glyph_to_path(
/// Convert a bitmap glyph to an encoded image URL.
#[comemo::memoize]
fn convert_bitmap_glyph_to_image(font: &Font, id: GlyphId) -> Option<(Image, f64, f64)> {
- let raster = font.ttf().glyph_raster_image(id, std::u16::MAX)?;
+ let raster = font.ttf().glyph_raster_image(id, u16::MAX)?;
if raster.format != ttf_parser::RasterImageFormat::PNG {
return None;
}