Skip to content

Commit

Permalink
Satisfy clippy
Browse files Browse the repository at this point in the history
Signed-off-by: Michael X. Grey <[email protected]>
  • Loading branch information
mxgrey committed Apr 4, 2024
1 parent 90bdd05 commit 6d90431
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rclrs/src/context.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}
Expand Down

0 comments on commit 6d90431

Please sign in to comment.