From da85b1222ca2d4dcb901d10f2b0997d9bda90b56 Mon Sep 17 00:00:00 2001 From: ritchie Date: Thu, 1 Aug 2024 09:16:28 +0200 Subject: [PATCH] fix(python): Set default flags for FFI plugin --- py-polars/src/functions/misc.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/py-polars/src/functions/misc.rs b/py-polars/src/functions/misc.rs index 742e4aae82ab..5f372068e8e4 100644 --- a/py-polars/src/functions/misc.rs +++ b/py-polars/src/functions/misc.rs @@ -40,7 +40,7 @@ pub fn register_plugin_function( None }; - let mut flags = FunctionFlags::from_bits_truncate(0); + let mut flags = FunctionFlags::default(); flags.set(FunctionFlags::CHANGES_LENGTH, changes_length); flags.set(FunctionFlags::PASS_NAME_TO_APPLY, pass_name_to_apply); flags.set(FunctionFlags::RETURNS_SCALAR, returns_scalar);