Skip to content

Commit

Permalink
fix: clippy lint
Browse files Browse the repository at this point in the history
  • Loading branch information
simbleau committed Jan 19, 2024
1 parent 70bec16 commit 7033754
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/assets/parser.rs
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@ pub fn load_svg_from_bytes(bytes: &[u8]) -> Result<VelloVector, VectorLoaderErro
let mut builder = SceneBuilder::for_fragment(&mut scene_frag);
vello_svg::render_tree(&mut builder, &usvg, None);

let width = usvg.size.width() as f32;
let height = usvg.size.height() as f32;
let width = usvg.size.width();
let height = usvg.size.height();

let vello_vector = VelloVector {
data: Vector::Static(Arc::new(scene_frag)),
Expand Down

0 comments on commit 7033754

Please sign in to comment.