Fix some clippy warnings

This commit is contained in:
gwenn
2019-10-13 13:08:33 +02:00
parent 2d75411e44
commit 0cf9ef8514
4 changed files with 10 additions and 10 deletions

View File

@@ -96,8 +96,10 @@ impl From<Vec<u8>> for Value {
}
}
impl <T> From<Option<T>> for Value
where T: Into<Value> {
impl<T> From<Option<T>> for Value
where
T: Into<Value>,
{
fn from(v: Option<T>) -> Value {
match v {
Some(x) => x.into(),