Skip to content

Commit

Permalink
Removed clones
Browse files Browse the repository at this point in the history
  • Loading branch information
GamingGuy003 committed Sep 24, 2024
1 parent 0b74c98 commit 707c0c0
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/frontend/panels/main_menu.rs
Original file line number Diff line number Diff line change
Expand Up @@ -211,13 +211,13 @@ impl Raspirus {
.opacity({
if match &selection {
LocationSelection::Usb { .. } => {
matches!(element.0.clone(), LocationSelection::Usb { .. })
matches!(element.0, LocationSelection::Usb { .. })
}
LocationSelection::Folder { .. } => {
matches!(element.0.clone(), LocationSelection::Folder { .. })
matches!(element.0, LocationSelection::Folder { .. })
}
LocationSelection::File { .. } => {
matches!(element.0.clone(), LocationSelection::File { .. })
matches!(element.0, LocationSelection::File { .. })
}
} {
1.0
Expand Down

0 comments on commit 707c0c0

Please sign in to comment.