File tree Expand file tree Collapse file tree 4 files changed +6
-9
lines changed
Expand file tree Collapse file tree 4 files changed +6
-9
lines changed Original file line number Diff line number Diff line change @@ -401,7 +401,7 @@ pub mod mods {
401401 }
402402 RuntimeType :: Bool => FieldKind :: Bool ,
403403 RuntimeType :: String => FieldKind :: String ,
404- RuntimeType :: VecU8 => FieldKind :: Bytes ,
404+ RuntimeType :: VecU8 => FieldKind :: String ,
405405 RuntimeType :: Enum ( _) => FieldKind :: Integer ,
406406 RuntimeType :: Message ( m) => {
407407 FieldKind :: Struct ( Struct :: new ( m) )
@@ -433,8 +433,6 @@ pub mod mods {
433433 Bool ,
434434 /// A string.
435435 String ,
436- /// A bytes sequence.
437- Bytes ,
438436 /// A structure.
439437 Struct ( Struct ) ,
440438 /// An array.
Original file line number Diff line number Diff line change @@ -371,19 +371,19 @@ fn test_reflect() {
371371
372372 let field = fields. next ( ) . unwrap ( ) ;
373373 assert_eq ! ( field. name( ) , "bytes_foo" ) ;
374- assert_eq ! ( field. kind( ) , FieldKind :: Bytes ) ;
374+ assert_eq ! ( field. kind( ) , FieldKind :: String ) ;
375375
376376 let field = fields. next ( ) . unwrap ( ) ;
377377 assert_eq ! ( field. name( ) , "bytes_bar" ) ;
378- assert_eq ! ( field. kind( ) , FieldKind :: Bytes ) ;
378+ assert_eq ! ( field. kind( ) , FieldKind :: String ) ;
379379
380380 let field = fields. next ( ) . unwrap ( ) ;
381381 assert_eq ! ( field. name( ) , "bytes_raw" ) ;
382- assert_eq ! ( field. kind( ) , FieldKind :: Bytes ) ;
382+ assert_eq ! ( field. kind( ) , FieldKind :: String ) ;
383383
384384 let field = fields. next ( ) . unwrap ( ) ;
385385 assert_eq ! ( field. name( ) , "bytes_undef" ) ;
386- assert_eq ! ( field. kind( ) , FieldKind :: Bytes ) ;
386+ assert_eq ! ( field. kind( ) , FieldKind :: String ) ;
387387
388388 let field = fields. next ( ) . unwrap ( ) ;
389389 assert_eq ! ( field. name( ) , "enumeration" ) ;
Original file line number Diff line number Diff line change @@ -437,7 +437,6 @@ fn kind_to_string(k: &FieldKind) -> String {
437437 FieldKind :: Float => "float" . to_string ( ) ,
438438 FieldKind :: Bool => "bool" . to_string ( ) ,
439439 FieldKind :: String => "string" . to_string ( ) ,
440- FieldKind :: Bytes => "bytes" . to_string ( ) ,
441440 FieldKind :: Struct ( _) => "struct" . to_string ( ) ,
442441 FieldKind :: Array ( inner) => format ! ( "array<{}>" , kind_to_string( inner) ) ,
443442 FieldKind :: Map ( key, value) => {
Original file line number Diff line number Diff line change 338338 {
339339 "label" : " pdb_path" ,
340340 "labelDetails" : {
341- "description" : " bytes "
341+ "description" : " string "
342342 },
343343 "kind" : 5
344344 },
You can’t perform that action at this time.
0 commit comments