Skip to content

Commit

Permalink
from over into
Browse files Browse the repository at this point in the history
  • Loading branch information
asibahi committed Oct 24, 2024
1 parent e359ef6 commit 4e1f322
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions src/hb/paint_extents.rs
Original file line number Diff line number Diff line change
Expand Up @@ -40,13 +40,13 @@ impl hb_extents_t {
}
}

impl Into<hb_extents_t> for RectF {
fn into(self) -> hb_extents_t {
hb_extents_t {
x_min: self.x_min,
y_min: self.y_min,
x_max: self.x_max,
y_max: self.y_max,
impl From<RectF> for hb_extents_t {
fn from(val: RectF) -> Self {
Self {
x_min: val.x_min,
y_min: val.y_min,
x_max: val.x_max,
y_max: val.y_max,
}
}
}
Expand Down

0 comments on commit 4e1f322

Please sign in to comment.