summaryrefslogtreecommitdiffstats
path: root/tiny_skia
diff options
context:
space:
mode:
authorLibravatar Héctor Ramón Jiménez <hector0193@gmail.com>2023-02-27 16:30:54 +0100
committerLibravatar Héctor Ramón Jiménez <hector0193@gmail.com>2023-02-27 16:30:54 +0100
commit151daf95b70d5a53007496e58f49fc618c1a22e4 (patch)
treef227ad8bfe852c9633d8bf31a316ed06a6241378 /tiny_skia
parentc1ff803b8f98beb2a73bb4252b34921110aa6cf0 (diff)
downloadiced-151daf95b70d5a53007496e58f49fc618c1a22e4.tar.gz
iced-151daf95b70d5a53007496e58f49fc618c1a22e4.tar.bz2
iced-151daf95b70d5a53007496e58f49fc618c1a22e4.zip
Remove unnecessary `cast_slice` in `iced_tiny_skia`
Diffstat (limited to 'tiny_skia')
-rw-r--r--tiny_skia/src/text.rs3
1 files changed, 1 insertions, 2 deletions
diff --git a/tiny_skia/src/text.rs b/tiny_skia/src/text.rs
index cd7eb1ed..37b0fe47 100644
--- a/tiny_skia/src/text.rs
+++ b/tiny_skia/src/text.rs
@@ -123,7 +123,7 @@ impl Pipeline {
.allocate(glyph.cache_key, color, &mut swash)
{
let pixmap = tiny_skia::PixmapRef::from_bytes(
- bytemuck::cast_slice(&buffer),
+ buffer,
placement.width,
placement.height,
)
@@ -266,7 +266,6 @@ impl GlyphCache {
return None;
}
- // TODO: Cache glyph rasterization
let mut buffer = vec![0u32; glyph_size];
match image.content {