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, ), ];