mirror of https://github.com/linebender/xilem
Fix clippy lint
This commit is contained in:
parent
e7d09105e2
commit
f5a9ab394a
|
@ -92,7 +92,7 @@ impl Gradient {
|
||||||
impl GradientShape {
|
impl GradientShape {
|
||||||
pub fn get_peniko_kind_for_rect(&self, rect: Rect) -> crate::peniko::GradientKind {
|
pub fn get_peniko_kind_for_rect(&self, rect: Rect) -> crate::peniko::GradientKind {
|
||||||
match self {
|
match self {
|
||||||
GradientShape::Linear { angle } => Self::get_peniko_linear_for_rect(*angle, rect),
|
Self::Linear { angle } => Self::get_peniko_linear_for_rect(*angle, rect),
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue