Skip to content

Commit

Permalink
fix: warnings a bit
Browse files Browse the repository at this point in the history
  • Loading branch information
Myriad-Dreamin committed Sep 29, 2024
1 parent cb2b325 commit c87c105
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
2 changes: 2 additions & 0 deletions crates/conversion/vec2canvas/src/ops.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
#![allow(unused)]

use async_trait::async_trait;
use reflexo_vec2bbox::Vec2BBoxPass;

Expand Down
6 changes: 3 additions & 3 deletions crates/conversion/vec2canvas/src/pixglyph_canvas.rs
Original file line number Diff line number Diff line change
Expand Up @@ -38,9 +38,9 @@ use crate::device::CanvasDevice;
#[derive(Debug, Clone)]
pub struct Glyph {
/// The glyph bounding box.
pub bbox: Rect,
bbox: Rect,
/// The path segments.
pub segments: Vec<Segment>,
segments: Vec<Segment>,
}

impl Glyph {
Expand Down Expand Up @@ -396,7 +396,7 @@ impl Canvas {

/// Draw a straight line.
fn line(&mut self, p0: Point, p1: Point) {
if (p0.y - p1.y).abs() <= core::f32::EPSILON {
if (p0.y - p1.y).abs() <= f32::EPSILON {
return;
}
let (dir, p0, p1) = if p0.y < p1.y {
Expand Down

0 comments on commit c87c105

Please sign in to comment.