implement to_string method, prevent memory index overwrite on validation step

This commit is contained in:
yggverse 2024-11-23 18:04:57 +02:00
parent cda94cba2e
commit c86dca53bd
10 changed files with 100 additions and 21 deletions

View file

@ -28,12 +28,12 @@ impl Bookmark {
match database.records(None) {
Ok(records) => {
for record in records {
if memory.add(record.request, record.id).is_err() {
todo!()
if let Err(reason) = memory.add(record.request, record.id) {
todo!("{}", reason.to_string())
}
}
}
Err(reason) => todo!("{reason}"),
Err(reason) => todo!("{}", reason.to_string()),
}
// Return new `Self`