diff --git a/piet-gpu/src/samples.rs b/piet-gpu/src/samples.rs index 2b85877..e4f7bc8 100644 --- a/piet-gpu/src/samples.rs +++ b/piet-gpu/src/samples.rs @@ -82,7 +82,10 @@ pub fn render_svg(sb: &mut SceneBuilder, svg: &PicoSvg, print_stats: bool) { #[allow(unused)] pub fn render_tiger(sb: &mut SceneBuilder, print_stats: bool) { use super::pico_svg::*; - let xml_str = std::str::from_utf8(include_bytes!("../../piet-wgsl/examples/assets/Ghostscript_Tiger.svg")).unwrap(); + let xml_str = std::str::from_utf8(include_bytes!( + "../../piet-wgsl/examples/assets/Ghostscript_Tiger.svg" + )) + .unwrap(); let start = std::time::Instant::now(); let svg = PicoSvg::load(xml_str, 8.0).unwrap(); if print_stats { diff --git a/piet-gpu/src/simple_text.rs b/piet-gpu/src/simple_text.rs index 266c582..674099e 100644 --- a/piet-gpu/src/simple_text.rs +++ b/piet-gpu/src/simple_text.rs @@ -22,7 +22,8 @@ pub use pinot::FontRef; // This is very much a hack to get things working. // On Windows, can set this to "c:\\Windows\\Fonts\\seguiemj.ttf" to get color emoji -const FONT_DATA: &[u8] = include_bytes!("../../piet-wgsl/examples/assets/third-party/Roboto-Regular.ttf"); +const FONT_DATA: &[u8] = + include_bytes!("../../piet-wgsl/examples/assets/third-party/Roboto-Regular.ttf"); pub struct SimpleText { gcx: GlyphContext, diff --git a/piet-scene/src/scene/builder.rs b/piet-scene/src/scene/builder.rs index a3c6cbd..3417b97 100644 --- a/piet-scene/src/scene/builder.rs +++ b/piet-scene/src/scene/builder.rs @@ -307,7 +307,6 @@ impl<'a> From<&'a mut SceneFragment> for AnyScene<'a> { } } - fn encode_blend_mode(mode: BlendMode) -> u32 { (mode.mix as u32) << 8 | mode.compose as u32 }