File tree 1 file changed +21
-0
lines changed
crates/cargo-util-schemas/src/manifest
1 file changed +21
-0
lines changed Original file line number Diff line number Diff line change @@ -418,6 +418,13 @@ impl<'de> de::Deserialize<'de> for InheritableString {
418
418
Ok ( InheritableString :: Value ( value) )
419
419
}
420
420
421
+ fn visit_str < E > ( self , value : & str ) -> Result < Self :: Value , E >
422
+ where
423
+ E : de:: Error ,
424
+ {
425
+ self . visit_string ( value. to_owned ( ) )
426
+ }
427
+
421
428
fn visit_map < V > ( self , map : V ) -> Result < Self :: Value , V :: Error >
422
429
where
423
430
V : de:: MapAccess < ' de > ,
@@ -454,6 +461,13 @@ impl<'de> de::Deserialize<'de> for InheritableRustVersion {
454
461
Ok ( InheritableRustVersion :: Value ( value) )
455
462
}
456
463
464
+ fn visit_str < E > ( self , value : & str ) -> Result < Self :: Value , E >
465
+ where
466
+ E : de:: Error ,
467
+ {
468
+ self . visit_string ( value. to_owned ( ) )
469
+ }
470
+
457
471
fn visit_map < V > ( self , map : V ) -> Result < Self :: Value , V :: Error >
458
472
where
459
473
V : de:: MapAccess < ' de > ,
@@ -533,6 +547,13 @@ impl<'de> de::Deserialize<'de> for InheritableStringOrBool {
533
547
StringOrBool :: deserialize ( string) . map ( InheritableField :: Value )
534
548
}
535
549
550
+ fn visit_str < E > ( self , value : & str ) -> Result < Self :: Value , E >
551
+ where
552
+ E : de:: Error ,
553
+ {
554
+ self . visit_string ( value. to_owned ( ) )
555
+ }
556
+
536
557
fn visit_map < V > ( self , map : V ) -> Result < Self :: Value , V :: Error >
537
558
where
538
559
V : de:: MapAccess < ' de > ,
You can’t perform that action at this time.
0 commit comments