##// END OF EJS Templates
rust-config: fix incorrect coercion of null values to false...
Raphaël Gomès -
r51876:8343947a default
parent child Browse files
Show More
@@ -198,7 +198,7 b' impl TryFrom<&DefaultConfigItem> for Opt'
198 _ => Err(err),
198 _ => Err(err),
199 }
199 }
200 }
200 }
201 None => Ok(Some(false)),
201 None => Ok(None),
202 }
202 }
203 }
203 }
204 }
204 }
@@ -805,7 +805,6 b' mod tests {'
805 assert!(ret.is_ok(), "{:?}", ret);
805 assert!(ret.is_ok(), "{:?}", ret);
806
806
807 let ret = config.get_byte_size(b"ui", b"formatted");
807 let ret = config.get_byte_size(b"ui", b"formatted");
808 // FIXME should be `is_none()`
808 assert!(ret.unwrap().is_none());
809 assert!(ret.unwrap().is_some());
810 }
809 }
811 }
810 }
General Comments 0
You need to be logged in to leave comments. Login now