From impl
This commit is contained in:
1 parent
a92d1a9424
commit
00cd0dae6e
1 file changed
+3
-3
@@ -18,9 +18,9 @@ pub enum FormValue {
|
|||||||
Text(String),
|
Text(String),
|
||||||
VecText(Vec<String>),
|
VecText(Vec<String>),
|
||||||
}
|
}
|
||||||
impl Into<Vec<String>> for FormValue {
|
impl From<FormValue> for Vec<String> {
|
||||||
fn into(self) -> Vec<String> {
|
fn from(value: FormValue) -> Self {
|
||||||
match self {
|
match value {
|
||||||
FormValue::Text(s) => vec![s],
|
FormValue::Text(s) => vec![s],
|
||||||
FormValue::VecText(vec) => vec,
|
FormValue::VecText(vec) => vec,
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in new issue
Block a user