diff --git a/rclrs/build.rs b/rclrs/build.rs index e6aa8ee05..9da8afa7f 100644 --- a/rclrs/build.rs +++ b/rclrs/build.rs @@ -25,10 +25,10 @@ fn main() { "ROS_DISTRO environment variable not set - please source ROS 2 installation first."; cfg_if::cfg_if! { if #[cfg(feature="generate_docs")] { - println!(error_msg); + println!("{}", error_msg); return; } else { - panic!(error_msg); + panic!("{}", error_msg); } } }; diff --git a/rclrs/src/rcl_bindings.rs b/rclrs/src/rcl_bindings.rs index f8da919f4..02baa69e2 100644 --- a/rclrs/src/rcl_bindings.rs +++ b/rclrs/src/rcl_bindings.rs @@ -138,7 +138,7 @@ cfg_if::cfg_if! { // 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)] #[allow(improper_ctypes_definitions)] #[allow(clippy::all)] #[allow(missing_docs)]