Skip to content

Commit 42e0b5c

Browse files
committed
Import the builtin_interfaces directly from the internal vendor module.
1 parent b122542 commit 42e0b5c

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

rclrs/Cargo.toml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,9 +26,6 @@ libloading = { version = "0.8", optional = true }
2626
# Needed for the Message trait, among others
2727
rosidl_runtime_rs = "0.4"
2828

29-
[dependencies.builtin_interfaces]
30-
version = "*"
31-
3229
[dev-dependencies]
3330
# Needed for e.g. writing yaml files in tests
3431
tempfile = "3.3.0"

rclrs/src/time.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
use crate::rcl_bindings::*;
2+
use crate::vendor::builtin_interfaces;
23
use std::num::TryFromIntError;
34
use std::ops::{Add, Sub};
45
use std::sync::{Mutex, Weak};
@@ -70,7 +71,7 @@ mod tests {
7071
fn compare_times_from_same_clock() {
7172
let clock = Clock::system();
7273
let t1 = clock.now();
73-
std::thread::sleep(std::time::Duration::from_micros(1));
74+
std::thread::sleep(Duration::from_micros(1));
7475
let t2 = clock.now();
7576
assert_eq!(t1.compare_with(&t2, |t1, t2| t1 > t2), Some(false));
7677
assert_eq!(t1.compare_with(&t2, |t1, t2| t2 > t1), Some(true));

0 commit comments

Comments
 (0)