From ce1a959df26f39ca45f3de5f9a2fb2d65fabb26a Mon Sep 17 00:00:00 2001 From: Christian Eltzschig Date: Mon, 16 Dec 2024 13:26:19 +0100 Subject: [PATCH] [#264] Fix clippy warnings --- iceoryx2-ffi/ffi/src/api/service_builder_event.rs | 12 ++++++------ iceoryx2-ffi/ffi/src/api/service_builder_pub_sub.rs | 12 ++++++------ 2 files changed, 12 insertions(+), 12 deletions(-) diff --git a/iceoryx2-ffi/ffi/src/api/service_builder_event.rs b/iceoryx2-ffi/ffi/src/api/service_builder_event.rs index 9ad6e103..cf596e66 100644 --- a/iceoryx2-ffi/ffi/src/api/service_builder_event.rs +++ b/iceoryx2-ffi/ffi/src/api/service_builder_event.rs @@ -332,8 +332,8 @@ pub unsafe extern "C" fn iox2_service_builder_event_open_or_create_with_attribut service_builder_handle, port_factory_struct_ptr, port_factory_handle_ptr, - |service_builder| service_builder.open_or_create_with_attributes(&attribute_verifier), - |service_builder| service_builder.open_or_create_with_attributes(&attribute_verifier), + |service_builder| service_builder.open_or_create_with_attributes(attribute_verifier), + |service_builder| service_builder.open_or_create_with_attributes(attribute_verifier), ) } @@ -402,8 +402,8 @@ pub unsafe extern "C" fn iox2_service_builder_event_open_with_attributes( service_builder_handle, port_factory_struct_ptr, port_factory_handle_ptr, - |service_builder| service_builder.open_with_attributes(&attribute_verifier), - |service_builder| service_builder.open_with_attributes(&attribute_verifier), + |service_builder| service_builder.open_with_attributes(attribute_verifier), + |service_builder| service_builder.open_with_attributes(attribute_verifier), ) } @@ -472,8 +472,8 @@ pub unsafe extern "C" fn iox2_service_builder_event_create_with_attributes( service_builder_handle, port_factory_struct_ptr, port_factory_handle_ptr, - |service_builder| service_builder.create_with_attributes(&attribute_specifier), - |service_builder| service_builder.create_with_attributes(&attribute_specifier), + |service_builder| service_builder.create_with_attributes(attribute_specifier), + |service_builder| service_builder.create_with_attributes(attribute_specifier), ) } diff --git a/iceoryx2-ffi/ffi/src/api/service_builder_pub_sub.rs b/iceoryx2-ffi/ffi/src/api/service_builder_pub_sub.rs index cfabeae2..23a04bb7 100644 --- a/iceoryx2-ffi/ffi/src/api/service_builder_pub_sub.rs +++ b/iceoryx2-ffi/ffi/src/api/service_builder_pub_sub.rs @@ -810,8 +810,8 @@ pub unsafe extern "C" fn iox2_service_builder_pub_sub_open_or_create_with_attrib service_builder_handle, port_factory_struct_ptr, port_factory_handle_ptr, - |service_builder| service_builder.open_or_create_with_attributes(&attribute_verifier), - |service_builder| service_builder.open_or_create_with_attributes(&attribute_verifier), + |service_builder| service_builder.open_or_create_with_attributes(attribute_verifier), + |service_builder| service_builder.open_or_create_with_attributes(attribute_verifier), ) } @@ -880,8 +880,8 @@ pub unsafe extern "C" fn iox2_service_builder_pub_sub_open_with_attributes( service_builder_handle, port_factory_struct_ptr, port_factory_handle_ptr, - |service_builder| service_builder.open_with_attributes(&attribute_verifier), - |service_builder| service_builder.open_with_attributes(&attribute_verifier), + |service_builder| service_builder.open_with_attributes(attribute_verifier), + |service_builder| service_builder.open_with_attributes(attribute_verifier), ) } @@ -950,8 +950,8 @@ pub unsafe extern "C" fn iox2_service_builder_pub_sub_create_with_attributes( service_builder_handle, port_factory_struct_ptr, port_factory_handle_ptr, - |service_builder| service_builder.create_with_attributes(&attribute_specifier), - |service_builder| service_builder.create_with_attributes(&attribute_specifier), + |service_builder| service_builder.create_with_attributes(attribute_specifier), + |service_builder| service_builder.create_with_attributes(attribute_specifier), ) }