Skip to content

Commit f4e7c05

Browse files
committed
Use nightly for style check (#396)
* Use nightly for style check Signed-off-by: Michael X. Grey <mxgrey@intrinsic.ai> * Install nightly for cargo +nightly fmt Signed-off-by: Michael X. Grey <mxgrey@intrinsic.ai> * Fix style in examples Signed-off-by: Michael X. Grey <mxgrey@intrinsic.ai> * Update style for rosidl_runtime_rs Signed-off-by: Michael X. Grey <mxgrey@intrinsic.ai> * Add a comment indicating that nightly release is needed for formatting Signed-off-by: Michael X. Grey <mxgrey@intrinsic.ai> --------- Signed-off-by: Michael X. Grey <mxgrey@intrinsic.ai>
1 parent 3e6ae3e commit f4e7c05

File tree

2 files changed

+8
-6
lines changed

2 files changed

+8
-6
lines changed

rclrs/message_demo/src/message_demo.rs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
1-
use std::convert::TryInto;
2-
use std::env;
3-
use std::sync::Arc;
1+
use std::{convert::TryInto, env, sync::Arc};
42

53
use anyhow::{Error, Result};
64
use rosidl_runtime_rs::{seq, BoundedSequence, Message, Sequence};

rclrs/minimal_pub_sub/src/minimal_two_nodes.rs

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
1-
use std::env;
2-
use std::sync::atomic::{AtomicU32, Ordering};
3-
use std::sync::{Arc, Mutex};
1+
use std::{
2+
env,
3+
sync::{
4+
atomic::{AtomicU32, Ordering},
5+
Arc, Mutex,
6+
},
7+
};
48

59
use anyhow::{Error, Result};
610

0 commit comments

Comments
 (0)