Format code

This commit is contained in:
Quentin de Quelen 2019-11-20 14:12:12 +01:00
parent 878dd6912e
commit 530738cfe9
2 changed files with 6 additions and 2 deletions

View file

@ -51,7 +51,7 @@ impl Main {
pub fn created_at(self, reader: &heed::RoTxn) -> ZResult<Option<DateTime<Utc>>> {
self.main.get::<Str, SerdeDatetime>(reader, CREATED_AT)
}
pub fn put_updated_at(self, writer: &mut heed::RwTxn) -> ZResult<()> {
self.main
.put::<Str, SerdeDatetime>(writer, UPDATED_AT, &Utc::now())