From 16dd953b36a29bf9521e609dad2eccf93639b47a Mon Sep 17 00:00:00 2001 From: Emil Ernerfeldt Date: Fri, 10 Jun 2022 17:01:39 +0200 Subject: [PATCH] Fix tests (broken on main too) --- data_store/examples/memory_usage.rs | 2 +- log_types/src/encoding.rs | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/data_store/examples/memory_usage.rs b/data_store/examples/memory_usage.rs index db559bcb9d546..93493654a0424 100644 --- a/data_store/examples/memory_usage.rs +++ b/data_store/examples/memory_usage.rs @@ -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()), diff --git a/log_types/src/encoding.rs b/log_types/src/encoding.rs index b377289726911..86955e647d340 100644 --- a/log_types/src/encoding.rs +++ b/log_types/src/encoding.rs @@ -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, ), ];