summaryrefslogtreecommitdiffstats
path: root/src/value.rs
diff options
context:
space:
mode:
authorRyan Leckey <leckey.ryan@gmail.com>2017-01-30 15:07:56 -0800
committerRyan Leckey <leckey.ryan@gmail.com>2017-01-30 15:07:56 -0800
commit3bb6f8596f6f49e54883b4cc77020129d6a5b8a6 (patch)
tree4001a56ff8b46de4b0327ba092a363aafb4170b1 /src/value.rs
parent4b9519d20788f9da6b82a94e036cae7c77cb4798 (diff)
:green_heart:
Diffstat (limited to 'src/value.rs')
-rw-r--r--src/value.rs8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/value.rs b/src/value.rs
index 561394d..b66c721 100644
--- a/src/value.rs
+++ b/src/value.rs
@@ -25,7 +25,7 @@ impl<'a> Value<'a> {
Value::Float(value) => Some(value.to_string().into()),
Value::Boolean(value) => Some(value.to_string().into()),
- _ => unimplemented!()
+ _ => unimplemented!(),
}
}
@@ -44,7 +44,7 @@ impl<'a> Value<'a> {
}
}
- _ => unimplemented!()
+ _ => unimplemented!(),
}
}
@@ -56,7 +56,7 @@ impl<'a> Value<'a> {
Value::Boolean(value) => Some(if value { 1 } else { 0 }),
Value::Float(value) => Some(value.round() as i64),
- _ => unimplemented!()
+ _ => unimplemented!(),
}
}
@@ -68,7 +68,7 @@ impl<'a> Value<'a> {
Value::Integer(value) => Some(value as f64),
Value::Boolean(value) => Some(if value { 1.0 } else { 0.0 }),
- _ => unimplemented!()
+ _ => unimplemented!(),
}
}
}