Skip to content

Commit 6d90431

Browse files
committed
Satisfy clippy
Signed-off-by: Michael X. Grey <[email protected]>
1 parent 90bdd05 commit 6d90431

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

rclrs/src/context.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -217,7 +217,7 @@ impl InitOptions {
217217
// other than None. When the user asks for None, that is equivalent
218218
// to the default value in rcl_init_options.
219219
if let Some(domain_id) = self.domain_id {
220-
rcl_init_options_set_domain_id(&mut rcl_init_options, domain_id as usize);
220+
rcl_init_options_set_domain_id(&mut rcl_init_options, domain_id);
221221
}
222222
Ok(rcl_init_options)
223223
}

0 commit comments

Comments
 (0)