Remove unnecessary pub(crate) in widget::canvas::frame

This commit is contained in:
Héctor Ramón Jiménez 2022-11-03 06:02:11 +01:00
parent 4ef778aff3
commit 68cddd6468
No known key found for this signature in database
GPG key ID: 140CC052C94F138E

View file

@ -58,7 +58,7 @@ struct Transforms {
} }
#[derive(Debug, Clone, Copy)] #[derive(Debug, Clone, Copy)]
pub(crate) struct Transform { struct Transform {
raw: lyon::math::Transform, raw: lyon::math::Transform,
is_identity: bool, is_identity: bool,
} }
@ -82,10 +82,7 @@ impl Transform {
} }
} }
pub(crate) fn transform_gradient( fn transform_gradient(&self, mut gradient: Gradient) -> Gradient {
&self,
mut gradient: Gradient,
) -> Gradient {
let (start, end) = match &mut gradient { let (start, end) = match &mut gradient {
Gradient::Linear(linear) => (&mut linear.start, &mut linear.end), Gradient::Linear(linear) => (&mut linear.start, &mut linear.end),
}; };