Skip to content

Commit

Permalink
Remove redundant type constraints from ScalarUDF from
Browse files Browse the repository at this point in the history
ScalarUDFImpl has to be Sync and Send.
  • Loading branch information
findepi committed Nov 27, 2024
1 parent 6a4bf0f commit bd3b79f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion datafusion/expr/src/udf.rs
Original file line number Diff line number Diff line change
Expand Up @@ -319,7 +319,7 @@ impl ScalarUDF {

impl<F> From<F> for ScalarUDF
where
F: ScalarUDFImpl + Send + Sync + 'static,
F: ScalarUDFImpl + 'static,
{
fn from(fun: F) -> Self {
Self::new_from_impl(fun)
Expand Down

0 comments on commit bd3b79f

Please sign in to comment.