Skip to content

Commit 53c7ffb

Browse files
committed
Fix clippy issues
1 parent 1ced628 commit 53c7ffb

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

rclrs/src/node/subscription.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -218,13 +218,13 @@ where
218218
#[cfg(test)]
219219
mod tests {
220220
use super::*;
221-
use crate::{create_node, Context, Subscription, QOS_PROFILE_DEFAULT};
221+
use crate::{create_node, Context, QOS_PROFILE_DEFAULT};
222222

223223
#[test]
224224
fn test_instantiate_subscriber() -> Result<(), RclrsError> {
225225
let context =
226226
Context::new(vec![]).expect("Context instantiation is expected to be a success");
227-
let node = create_node(&context, "test_new_subscriber")?;
227+
let mut node = create_node(&context, "test_new_subscriber")?;
228228
let _subscriber = node.create_subscription::<std_msgs::msg::String, _>(
229229
"test",
230230
QOS_PROFILE_DEFAULT,

0 commit comments

Comments
 (0)