Update any.rs

This commit is contained in:
sunli 2020-05-07 18:50:47 +08:00
parent 99ec304a3f
commit e9c9dfbc27

View File

@ -34,7 +34,7 @@ impl ScalarType for Any {
impl Any {
/// Parse this `Any` value to T by `serde_json`.
fn parse_value<T: DeserializeOwned>(&self) -> std::result::Result<T, serde_json::Error> {
pub fn parse_value<T: DeserializeOwned>(&self) -> std::result::Result<T, serde_json::Error> {
serde_json::from_value(self.to_json().unwrap())
}
}