Adapted field type to use into()

This commit is contained in:
2022-07-24 22:36:08 -04:00
parent 108da0267b
commit 4a810a575c
2 changed files with 40 additions and 26 deletions

View File

@ -164,6 +164,7 @@ impl Record {
}
}
/*
async fn update_field(&self, name: String, data: FieldType) {
let mut map = self.data.write().await;
map.insert(name, data);
@ -176,6 +177,7 @@ impl Record {
None => None,
}
}
*/
}
#[cfg(test)]
@ -235,6 +237,7 @@ mod tables {
mod records {
use super::*;
/*
#[async_std::test]
async fn update_fields() {
let rec = Record::new();
@ -258,6 +261,7 @@ mod records {
let output = rec.get_field(name).await;
assert!(output == None, "Should return an option.");
}
*/
}
/*