Skip to content

Commit 6809137

Browse files
committed
style: apply cargo +nightly fmt
1 parent 7452273 commit 6809137

1 file changed

Lines changed: 6 additions & 6 deletions

File tree

rclrs/src/executor/event_callback.rs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,7 @@
2525
//! Getting that ordering wrong is a use-after-free, since the middleware may be
2626
//! calling the trampoline from another thread at the moment of teardown.
2727
28-
use std::os::raw::c_void;
29-
use std::sync::Arc;
28+
use std::{os::raw::c_void, sync::Arc};
3029

3130
use crate::{rcl_bindings::*, OnReadyHandle, RclrsError, ToResult};
3231

@@ -151,11 +150,12 @@ impl Drop for CtxBox {
151150
#[cfg(test)]
152151
mod tests {
153152
use super::*;
154-
use crate::subscription::set_subscription_on_new_message;
155-
use crate::*;
153+
use crate::{subscription::set_subscription_on_new_message, *};
156154
use ros_env::test_msgs::msg;
157-
use std::sync::atomic::{AtomicUsize, Ordering};
158-
use std::time::{Duration, Instant};
155+
use std::{
156+
sync::atomic::{AtomicUsize, Ordering},
157+
time::{Duration, Instant},
158+
};
159159

160160
/// The push callback fires when messages arrive, without ever spinning the
161161
/// executor (i.e. without `rcl_wait`).

0 commit comments

Comments
 (0)