From impl

This commit is contained in:
serzhiio committed 2024-01-15 17:38:31 +04:00
1 parent a92d1a9424
commit 00cd0dae6e
1 file changed
+3 -3
+3 -3
View File
@@ -18,9 +18,9 @@ pub enum FormValue {
Text(String),
VecText(Vec<String>),
}
impl Into<Vec<String>> for FormValue {
fn into(self) -> Vec<String> {
match self {
impl From<FormValue> for Vec<String> {
fn from(value: FormValue) -> Self {
match value {
FormValue::Text(s) => vec![s],
FormValue::VecText(vec) => vec,
}