Skip to content

Commit 84ffcd5

Browse files
committed
fix compile error
1 parent 0446330 commit 84ffcd5

File tree

1 file changed

+1
-11
lines changed

1 file changed

+1
-11
lines changed

ros-monitor-lib/src/lib.rs

+1-11
Original file line numberDiff line numberDiff line change
@@ -22,16 +22,6 @@ impl Drop for AbortJoinHandle {
2222
}
2323

2424
impl RosMonitor {
25-
#[cfg(not(unix))]
26-
pub fn new(_command: impl Into<OsString>) -> Self {
27-
Self {
28-
state: Arc::new(Mutex::new(state::RosState::default())),
29-
channel: Arc::new(Mutex::new(None)),
30-
_task: Arc::new(AbortJoinHandle(tokio::spawn(async {}))),
31-
}
32-
}
33-
34-
#[cfg(unix)]
3525
pub fn new(command: impl Into<OsString>) -> Self {
3626
use std::process::Stdio;
3727
use tokio::io::AsyncReadExt;
@@ -108,7 +98,7 @@ impl RosMonitor {
10898
if let Err(error) = error {
10999
let mut reason = String::new();
110100
if error.to_string().contains("error while loading shared libraries") {
111-
reason.push_str("Please make sure that ROS is sourced, and try at least rolling or jazzy release.");
101+
reason.push_str("Please make sure that ROS is sourced, and try at least ROS jazzy.");
112102
}
113103
log::error!("ROS discovery is not available:\n{:?}{}", error, reason);
114104
}

0 commit comments

Comments
 (0)