Adapted field type to use into()
This commit is contained in:
@ -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.");
|
||||
}
|
||||
*/
|
||||
}
|
||||
|
||||
/*
|
||||
|
Reference in New Issue
Block a user