Update euclid to 0.18

This commit is contained in:
Bastien Orivel 2018-07-18 09:27:07 +02:00
parent 88664912ed
commit 9e446971a8
27 changed files with 78 additions and 82 deletions

View file

@ -34,7 +34,7 @@ cfg-if = "0.1.0"
cssparser = "0.24.0"
new_debug_unreachable = "1.0"
encoding_rs = {version = "0.7", optional = true}
euclid = "0.17"
euclid = "0.18"
fallible = { path = "../fallible" }
fnv = "1.0"
hashglobe = { path = "../hashglobe" }

View file

@ -436,7 +436,6 @@ where
Perspective(ref d) => {
let m = create_perspective_matrix(d.to_pixel_length(None)?);
m.cast()
.expect("Casting from f32 to f64 should be successful")
},
Scale3D(sx, sy, sz) => Transform3D::create_scale(sx.into(), sy.into(), sz.into()),
Scale(sx, sy) => Transform3D::create_scale(sx.into(), sy.unwrap_or(sx).into(), 1.),