remove some latent todos!()

This commit is contained in:
Jonathan Kelley committed 2025-10-30 19:29:53 -07:00
1 parent 32e46d98be
commit 90e988cbdb
3 files changed
+24 -47

No files matched your search

+14 -1
View File
@@ -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 {