From 6d9043164979da57668bc17e7a5eba1cc8a56bec Mon Sep 17 00:00:00 2001 From: "Michael X. Grey" Date: Thu, 4 Apr 2024 18:43:24 +0000 Subject: [PATCH] Satisfy clippy Signed-off-by: Michael X. Grey --- rclrs/src/context.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rclrs/src/context.rs b/rclrs/src/context.rs index 4bd9dffd3..ad82c680e 100644 --- a/rclrs/src/context.rs +++ b/rclrs/src/context.rs @@ -217,7 +217,7 @@ impl InitOptions { // other than None. When the user asks for None, that is equivalent // to the default value in rcl_init_options. if let Some(domain_id) = self.domain_id { - rcl_init_options_set_domain_id(&mut rcl_init_options, domain_id as usize); + rcl_init_options_set_domain_id(&mut rcl_init_options, domain_id); } Ok(rcl_init_options) }