remove some latent todos!()
This commit is contained in:
1 parent
32e46d98be
commit
90e988cbdb
3 files changed
+24
-47
No files matched your search
@@ -297,7 +297,20 @@ mod serialize {
|
||||
}
|
||||
|
||||
fn values(&self) -> Vec<(String, FormValue)> {
|
||||
todo!()
|
||||
self.values
|
||||
.iter()
|
||||
.map(|v| {
|
||||
let value = if let Some(text) = &v.text {
|
||||
FormValue::Text(text.clone())
|
||||
} else if let Some(_file) = &v.file {
|
||||
// todo: we lose the file contents here
|
||||
FormValue::File(None)
|
||||
} else {
|
||||
FormValue::File(None)
|
||||
};
|
||||
(v.key.clone(), value)
|
||||
})
|
||||
.collect()
|
||||
}
|
||||
|
||||
fn valid(&self) -> bool {
|
||||
|
||||
Reference in new issue
Block a user