From eb1972c39fa1366d9c3b85ebd7ab2951e6c5b536 Mon Sep 17 00:00:00 2001 From: Esteve Fernandez Date: Thu, 9 Nov 2023 15:52:15 +0100 Subject: [PATCH] Fix formatting --- rclrs/src/rcl_bindings.rs | 25 +++++++++++++------------ 1 file changed, 13 insertions(+), 12 deletions(-) diff --git a/rclrs/src/rcl_bindings.rs b/rclrs/src/rcl_bindings.rs index 02baa69e2..209d26592 100644 --- a/rclrs/src/rcl_bindings.rs +++ b/rclrs/src/rcl_bindings.rs @@ -1,3 +1,16 @@ +#![allow(dead_code)] +#![allow(deref_nullptr)] +#![allow(non_upper_case_globals)] +#![allow(non_camel_case_types)] +#![allow(non_snake_case)] +// Added to avoid clippy complaining about u128 types not being FFI safe +// Caused by https://github.com/ros2/ros2/issues/1374 in iron and newer +// See https://github.com/ros2-rust/ros2_rust/issues/320 +#![allow(improper_ctypes)] +#![allow(improper_ctypes_definitions)] +#![allow(clippy::all)] +#![allow(missing_docs)] + cfg_if::cfg_if! { if #[cfg(feature="generate_docs")] { #[repr(C)] @@ -130,18 +143,6 @@ cfg_if::cfg_if! { pub fn rcl_context_is_valid(context: *const rcl_context_t) -> bool; } } else { - #[allow(dead_code)] - #[allow(deref_nullptr)] - #[allow(non_upper_case_globals)] - #[allow(non_camel_case_types)] - #[allow(non_snake_case)] - // Added to avoid clippy complaining about u128 types not being FFI safe - // Caused by https://github.com/ros2/ros2/issues/1374 in iron and newer - // See https://github.com/ros2-rust/ros2_rust/issues/320 - #![allow(improper_ctypes)] - #[allow(improper_ctypes_definitions)] - #[allow(clippy::all)] - #[allow(missing_docs)] include!(concat!(env!("OUT_DIR"), "/rcl_bindings_generated.rs")); pub const RMW_GID_STORAGE_SIZE: usize = rmw_gid_storage_size_constant;