Skip to content

Commit a4fea74

Browse files
committed
remove redundant trait constraint
1 parent 06b0463 commit a4fea74

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/views/button.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ struct ButtonState {
1111

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

0 commit comments

Comments
 (0)