Skip to content

Commit ba42b69

Browse files
jf2048bilelmoussaoui
authored andcommitted
Remove impl trait from ClosureExpression::with_closure
1 parent 77b2534 commit ba42b69

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

gtk4/src/closure_expression.rs

+3-4
Original file line numberDiff line numberDiff line change
@@ -50,12 +50,11 @@ impl ClosureExpression {
5050
}
5151

5252
#[doc(alias = "gtk_closure_expression_new")]
53-
pub fn with_closure<R>(
54-
params: impl IntoIterator<Item = impl AsRef<Expression>>,
55-
closure: glib::Closure,
56-
) -> Self
53+
pub fn with_closure<R, I, E>(params: I, closure: glib::Closure) -> Self
5754
where
5855
R: ValueType,
56+
I: IntoIterator<Item = E>,
57+
E: AsRef<Expression>,
5958
{
6059
assert_initialized_main_thread!();
6160

0 commit comments

Comments
 (0)