File tree 1 file changed +2
-3
lines changed
1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -511,7 +511,7 @@ impl<'a, 'de> de::Deserializer<'de> for &'a mut Deserializer<'de> {
511
511
where
512
512
V : Visitor < ' de > ,
513
513
{
514
- match self . peek ( ) . ok_or ( Error :: EofWhileParsingValue ) ? {
514
+ match self . parse_whitespace ( ) . ok_or ( Error :: EofWhileParsingValue ) ? {
515
515
b'[' => {
516
516
self . eat_char ( ) ;
517
517
let ret = visitor. visit_seq ( SeqAccess :: new ( self ) ) ?;
@@ -1054,7 +1054,6 @@ mod tests {
1054
1054
1055
1055
// See https://iot.mozilla.org/wot/#thing-resource
1056
1056
#[ test]
1057
- #[ ignore]
1058
1057
fn wot ( ) {
1059
1058
#[ derive( Debug , Deserialize , PartialEq ) ]
1060
1059
struct Thing < ' a > {
@@ -1114,7 +1113,7 @@ mod tests {
1114
1113
properties: Properties {
1115
1114
temperature: Property {
1116
1115
ty: Type :: Number ,
1117
- unit: Some ( "celcius " ) ,
1116
+ unit: Some ( "celsius " ) ,
1118
1117
description: Some ( "An ambient temperature sensor" ) ,
1119
1118
href: "/properties/temperature" ,
1120
1119
} ,
You can’t perform that action at this time.
0 commit comments