aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib.rs')
-rw-r--r--src/lib.rs10
1 files changed, 6 insertions, 4 deletions
diff --git a/src/lib.rs b/src/lib.rs
index e1b7f89..ec3b1c0 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -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)]