mirror of
https://github.com/italicsjenga/vello.git
synced 2025-01-10 12:41:30 +11:00
Oops. Delete one remaining lossy conversion
This commit is contained in:
parent
d30750e8a7
commit
5252a33c5d
|
@ -90,19 +90,6 @@ mod kurbo_conv {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
impl From<kurbo::PathEl> for Element {
|
|
||||||
fn from(e: kurbo::PathEl) -> Self {
|
|
||||||
use kurbo::PathEl::*;
|
|
||||||
match e {
|
|
||||||
MoveTo(p0) => Self::MoveTo(p0.into()),
|
|
||||||
LineTo(p0) => Self::LineTo(p0.into()),
|
|
||||||
QuadTo(p0, p1) => Self::QuadTo(p0.into(), p1.into()),
|
|
||||||
CurveTo(p0, p1, p2) => Self::CurveTo(p0.into(), p1.into(), p2.into()),
|
|
||||||
ClosePath => Self::Close,
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
impl Element {
|
impl Element {
|
||||||
/// Creates a new path element from the equivalent kurbo type.
|
/// Creates a new path element from the equivalent kurbo type.
|
||||||
pub fn from_kurbo(el: kurbo::PathEl) -> Self {
|
pub fn from_kurbo(el: kurbo::PathEl) -> Self {
|
||||||
|
|
Loading…
Reference in a new issue