Skip to content

Commit

Permalink
Fix formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
esteve committed Nov 9, 2023
1 parent 439b443 commit eb1972c
Showing 1 changed file with 13 additions and 12 deletions.
25 changes: 13 additions & 12 deletions rclrs/src/rcl_bindings.rs
Original file line number Diff line number Diff line change
@@ -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)]
Expand Down Expand Up @@ -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;
Expand Down

0 comments on commit eb1972c

Please sign in to comment.