Skip to content

Commit

Permalink
Fix tests (broken on main too)
Browse files Browse the repository at this point in the history
  • Loading branch information
emilk committed Jun 10, 2022
1 parent 5d3f31b commit 16dd953
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion data_store/examples/memory_usage.rs
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ impl TrackingAllocator {
}

fn data_path(camera: u64, index: u64, field: &str) -> DataPath {
DataPath(vec![
DataPath::new(vec![
DataPathComponent::String("camera".into()),
DataPathComponent::Index(Index::Sequence(camera)),
DataPathComponent::String("point".into()),
Expand Down
4 changes: 2 additions & 2 deletions log_types/src/encoding.rs
Original file line number Diff line number Diff line change
Expand Up @@ -152,10 +152,10 @@ fn test_encode_decode() {
TimeValue::Time(Time::from_ns_since_epoch(1_649_934_625_012_345_678)),
)]);
let messages = vec![
log_msg(&time_point, DataPath::default() / "foo" / "bar" / "baz", 42),
log_msg(&time_point, DataPath::from("foo") / "bar" / "baz", 42),
crate::log_msg(
&time_point,
DataPath::default() / "badger" / "mushroom" / "snake",
DataPath::from("badger") / "mushroom" / "snake",
1337.0,
),
];
Expand Down

0 comments on commit 16dd953

Please sign in to comment.