@@ -34,7 +34,7 @@ fn raw_point(raw: &[u8]) -> proto::gps_::LocationData_::Point {
3434
3535#[ no_panic]
3636fn round_trip ( ) -> Result < ( proto:: gps_:: LocationData , proto:: gps_:: LocationData ) , & ' static str > {
37- let mut points = micropb :: heapless:: Vec :: new ( ) ;
37+ let mut points = heapless:: Vec :: new ( ) ;
3838 points
3939 . push ( gps_point ( proto:: gps_:: Gps {
4040 time : 165547 ,
@@ -57,20 +57,20 @@ fn round_trip() -> Result<(proto::gps_::LocationData, proto::gps_::LocationData)
5757 . unwrap ( ) ;
5858 points. push ( raw_point ( b"abcdefg" ) ) . unwrap ( ) ;
5959
60- let mut time_to_type = micropb :: heapless :: FnvIndexMap :: new ( ) ;
60+ let mut time_to_type = heapless :: index_map :: FnvIndexMap :: new ( ) ;
6161 // Can't unwrap these inserts, since the compiler will generate panics here
6262 let _ = time_to_type. insert ( 165547 , proto:: gps_:: LocationData_ :: Type :: Gps ) ;
6363 let _ = time_to_type. insert ( 165577 , proto:: gps_:: LocationData_ :: Type :: Accel ) ;
6464 let _ = time_to_type. insert ( 165578 , proto:: gps_:: LocationData_ :: Type :: Raw ) ;
6565
6666 let input_location = proto:: gps_:: LocationData {
6767 checksum : 0xDEADBEEF ,
68- comment : micropb :: heapless:: String :: try_from ( "nice" ) . unwrap ( ) ,
68+ comment : heapless:: String :: try_from ( "nice" ) . unwrap ( ) ,
6969 points,
7070 time_to_type,
7171 } ;
7272
73- let mut encoder = PbEncoder :: new ( micropb :: heapless:: Vec :: < u8 , 100 > :: new ( ) ) ;
73+ let mut encoder = PbEncoder :: new ( heapless:: Vec :: < u8 , 100 > :: new ( ) ) ;
7474 input_location
7575 . encode ( & mut encoder)
7676 . map_err ( |_| "Encode error" ) ?;
0 commit comments