@@ -11,7 +11,7 @@ use rosidl_runtime_rs::Message;
1111use crate :: {
1212 error:: { RclReturnCode , ToResult } ,
1313 rcl_bindings:: * ,
14- IntoPrimitiveOptions , MessageCow , NodeHandle , RclrsError , ENTITY_LIFECYCLE_MUTEX , QoSProfile ,
14+ IntoPrimitiveOptions , MessageCow , NodeHandle , QoSProfile , RclrsError , ENTITY_LIFECYCLE_MUTEX ,
1515} ;
1616
1717// SAFETY: The functions accessing this type, including drop(), shouldn't care about the thread
@@ -97,10 +97,11 @@ where
9797 let mut rcl_client = unsafe { rcl_get_zero_initialized_client ( ) } ;
9898 let type_support = <T as rosidl_runtime_rs:: Service >:: get_type_support ( )
9999 as * const rosidl_service_type_support_t ;
100- let topic_c_string = CString :: new ( service_name) . map_err ( |err| RclrsError :: StringContainsNul {
101- err,
102- s : service_name. into ( ) ,
103- } ) ?;
100+ let topic_c_string =
101+ CString :: new ( service_name) . map_err ( |err| RclrsError :: StringContainsNul {
102+ err,
103+ s : service_name. into ( ) ,
104+ } ) ?;
104105
105106 // SAFETY: No preconditions for this function.
106107 let mut client_options = unsafe { rcl_client_get_default_options ( ) } ;
@@ -296,7 +297,10 @@ pub struct ClientOptions<'a> {
296297impl < ' a > ClientOptions < ' a > {
297298 /// Initialize a new [`ClientOptions`] with default settings.
298299 pub fn new ( service_name : & ' a str ) -> Self {
299- Self { service_name, qos : QoSProfile :: services_default ( ) }
300+ Self {
301+ service_name,
302+ qos : QoSProfile :: services_default ( ) ,
303+ }
300304 }
301305}
302306
0 commit comments