Remove unnecessary pub(crate) in widget::canvas::frame
This commit is contained in:
parent
4ef778aff3
commit
68cddd6468
1 changed files with 2 additions and 5 deletions
|
|
@ -58,7 +58,7 @@ struct Transforms {
|
|||
}
|
||||
|
||||
#[derive(Debug, Clone, Copy)]
|
||||
pub(crate) struct Transform {
|
||||
struct Transform {
|
||||
raw: lyon::math::Transform,
|
||||
is_identity: bool,
|
||||
}
|
||||
|
|
@ -82,10 +82,7 @@ impl Transform {
|
|||
}
|
||||
}
|
||||
|
||||
pub(crate) fn transform_gradient(
|
||||
&self,
|
||||
mut gradient: Gradient,
|
||||
) -> Gradient {
|
||||
fn transform_gradient(&self, mut gradient: Gradient) -> Gradient {
|
||||
let (start, end) = match &mut gradient {
|
||||
Gradient::Linear(linear) => (&mut linear.start, &mut linear.end),
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue