Skip to content

Commit

Permalink
Remove unnecessary lens clone
Browse files Browse the repository at this point in the history
  • Loading branch information
geom3trik committed Apr 27, 2024
1 parent ed0ee0e commit 77749f6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions crates/vizia_core/src/views/xypad.rs
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@ impl XYPad {
// Thumb
Element::new(cx)
.position_type(PositionType::SelfDirected)
.left(lens.clone().map(|(x, _)| Percentage(*x * 100.0)))
.top(lens.clone().map(|(_, y)| Percentage((1.0 - *y) * 100.0)))
.left(lens.map(|(x, _)| Percentage(*x * 100.0)))
.top(lens.map(|(_, y)| Percentage((1.0 - *y) * 100.0)))
.translate(Translate::new(
Length::Value(LengthValue::Px(-6.0)),
Length::Value(LengthValue::Px(-6.0)),
Expand Down

0 comments on commit 77749f6

Please sign in to comment.