Skip to content

Commit 35fa24a

Browse files
committed
Restore unsafe tag to Send trait
Signed-off-by: Michael X. Grey <[email protected]>
1 parent a4fa5cb commit 35fa24a

File tree

2 files changed

+2
-14
lines changed

2 files changed

+2
-14
lines changed

rclrs/Cargo.lock

Lines changed: 1 addition & 13 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

rclrs/src/timer.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -536,7 +536,7 @@ impl Drop for TimerHandle {
536536

537537
// SAFETY: The functions accessing this type, including drop(), shouldn't care about the thread
538538
// they are running in. Therefore, this type can be safely sent to another thread.
539-
impl Send for rcl_timer_t {}
539+
unsafe impl Send for rcl_timer_t {}
540540

541541
#[cfg(test)]
542542
mod tests {

0 commit comments

Comments
 (0)