Skip to content

Commit c69a258

Browse files
committed
Put use rustflags next to its usage to prevent a build warning.
1 parent 646844f commit c69a258

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

rclrs/build.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,9 @@ fn main() {
2121
let ros_distro = if let Ok(value) = env::var(ROS_DISTRO) {
2222
value
2323
} else {
24-
use rustflags;
2524
cfg_if::cfg_if! {
2625
if #[cfg(feature="use_ros_shim")] {
26+
use rustflags;
2727
// // Look for --cfg ros_distro=<ros_distro>
2828
for flag in rustflags::from_env() {
2929
if matches!(flag, rustflags::Flag::Cfg { ref name, value : _ } if name == "ros_distro") {

0 commit comments

Comments
 (0)