Skip to content
Permalink
Browse files

style: Trivially simplify some recently-added code.

  • Loading branch information...
emilio committed Jul 8, 2019
1 parent c5a90e1 commit c9139416695be23cdbcbdd42cc33bfea91e911d1
Showing with 1 addition and 5 deletions.
  1. +1 −5 components/style/values/generics/transform.rs
@@ -542,11 +542,7 @@ impl<T: ToMatrix> Transform<T> {
)
};

let (m, is_3d) = match self.to_transform_3d_matrix_f64(reference_box) {
Ok(result) => result,
Err(err) => return Err(err),
};

let (m, is_3d) = self.to_transform_3d_matrix_f64(reference_box)?;
Ok((cast_3d_transform(m), is_3d))
}

0 comments on commit c913941

Please sign in to comment.
You can’t perform that action at this time.