Add From<Vec<String> implementation to Value (#1688)
This commit is contained in:
parent
5e2236dbfd
commit
d7956ea73b
1 changed files with 6 additions and 0 deletions
|
@ -415,6 +415,12 @@ impl From<Vec<&str>> for Value {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
impl From<Vec<String>> for Value {
|
||||||
|
fn from(v: Vec<String>) -> Self {
|
||||||
|
Value::Array(Array::from(v))
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
impl From<Vec<i32>> for Value {
|
impl From<Vec<i32>> for Value {
|
||||||
fn from(v: Vec<i32>) -> Self {
|
fn from(v: Vec<i32>) -> Self {
|
||||||
Value::Array(Array::from(v))
|
Value::Array(Array::from(v))
|
||||||
|
|
Loading…
Reference in a new issue