Jumped the gun on pushing; one more readability update :P

This commit is contained in:
shan 2022-10-07 16:57:29 -07:00
parent fd5e1e5ab0
commit 7a124476b1

View file

@ -50,11 +50,11 @@ impl Transform {
&self,
mut gradient: Gradient,
) -> Gradient {
let coords = match &mut gradient {
let (start, end) = match &mut gradient {
Gradient::Linear(linear) => (&mut linear.start, &mut linear.end),
};
self.transform_point(coords.0);
self.transform_point(coords.1);
self.transform_point(start);
self.transform_point(end);
gradient
}
}