Skip to content

Commit

Permalink
remove redundant trait constraint
Browse files Browse the repository at this point in the history
  • Loading branch information
wtholliday committed Jan 26, 2025
1 parent 06b0463 commit a4fea74
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/views/button.rs
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ struct ButtonState {

/// Calls a function when the button is tapped.
pub fn button<A: 'static, F: Fn(&mut Context) -> A + 'static + Clone>(
view: impl View + Clone,
view: impl View,
f: F,
) -> impl View {
state(
Expand Down

0 comments on commit a4fea74

Please sign in to comment.