diff options
Diffstat (limited to 'src/lib.rs')
| -rw-r--r-- | src/lib.rs | 10 |
1 files changed, 6 insertions, 4 deletions
@@ -111,6 +111,12 @@ impl From<&Value> for Type { } } +impl From<Value> for Type { + fn from(value: Value) -> Type { + Type::from(&value) + } +} + impl Type { pub fn is_unkown(&self) -> bool { match self { @@ -188,10 +194,6 @@ impl Value { _ => false, } } - - fn as_type(&self) -> Type { - Type::from(self) - } } #[derive(Clone, Debug)] |
